跳转到内容

Command line

此内容尚不支持你的语言。

The ferris-idea program opens the window, serves the MCP tools, runs single tool calls from a shell and drives the window from scripts. The usage below is the program’s own --help and <command> --help of ferris-idea 1.6.0 (stable); ferris-idea <command> --help prints the same on your machine.

On macOS the program is inside the app: /Applications/FerrisIDEA.app/Contents/MacOS/ferris-idea.

open

Opens a folder in the window, or shows an exchange file (.idc…) with what importing it would change; --print prints that preview instead.

ferris-idea open <directory>
ferris-idea open [--print] <file.idc…>

mcp

Serves the folder's tools to an MCP client over standard input and output. An untrusted folder is served in safe mode; --tools chooses the tool groups offered.

ferris-idea mcp <directory> [--trust] [--tools all|<group>,…]

serve

Runs the headless backend of a remote project: --stdio speaks the session protocol over standard input and output (the SSH channel); --pair starts the encrypted listener for hosts without SSH, on loopback unless the network is explicitly allowed; without either, nothing listens on the network.

ferris-idea serve [<folder>] --stdio [--state-dir <dir>] [--run-dir <dir>] [--reattach-minutes <n>]
ferris-idea serve [<folder>] --pair [--listen <addr>:<port>] [--allow-network] [--new-device]
[--grant <rights>] [--key-file] [--qr]
ferris-idea serve [<folder>] --wss --wss-cert <file> --wss-key <file> --wss-origin <origin>…
[--wss-rights <rights>] [--wss-secret-file <file>] [--listen <addr>:<port>]
[--allow-network]
ferris-idea serve --attach <session> [--run-dir <dir>]
ferris-idea serve --devices | --revoke <fingerprint> | --rights <fingerprint> <rights>
| --device-log | --device-log-of <fingerprint> | --access-off [--key-file]
ferris-idea serve --help
(ferris-idea-serve serve … takes the same arguments.)
The headless backend of a remote project.
modes:
--stdio speak the session protocol on standard input and output (SSH)
--pair listen for paired devices, encrypted; loopback unless allowed
--wss serve browsers over secure WebSocket; TLS only, authenticated
--attach <session> bridge standard input and output to a waiting session
options:
--state-dir <dir> folder of the key store and the audit log (default: settings folder)
--run-dir <dir> folder of the reattach sockets
--reattach-minutes <n> how long a session waits to be reattached, 1 to 60
--listen <addr>:<port> address to listen on (--pair, --wss)
--allow-network allow an address other than loopback
--new-device open a pairing window although devices are paired
--grant <rights> rights of the device paired now (default: view)
--key-file keep keys in a file instead of the system keychain
--qr also show the pairing link as a QR code
--wss-cert <file> certificate chain (PEM)
--wss-key <file> private key (PEM), readable by its owner only
--wss-origin <origin> an https origin browsers may connect from (repeatable)
--wss-rights <rights> rights of browser sessions
--wss-secret-file <file> write the web access secret to this owner-only file instead of
the terminal (needed when standard error is not a terminal)
devices:
--devices list the paired devices
--revoke <fingerprint> forget a paired device
--rights <fingerprint> <rights> set a device's rights
--device-log show the newest lines of the access log
--device-log-of <fingerprint> the same for one device
--access-off switch remote access off; a running listener closes everything
-h, --help print this help

trust

Reads and changes the remembered trusted locations: status, add, list and remove.

ferris-idea trust status <folder> | ferris-idea trust add <folder> [--folder] | ferris-idea trust list | ferris-idea trust remove <path>

device

The command line of a paired device: pair with a machine running ferris-idea serve --pair, list and forget hosts, add a path, and call one method.

ferris-idea device pair <address> --code <code> | pair <link> | hosts | forget <address> | add-path <address> <new path> | call <address> <folder> <method> [<json params>]

quit

Quits the running window through its MCP server: saves all, discards or forces as you choose; exits with 2 when there is unsaved work and no terminal to ask on.

ferris-idea quit [--save-all | --discard | --force] [--pid <pid>]

call

Runs one MCP tool from a shell with the rights and safe mode of ferris-idea mcp, prints the result and exits with 0, 1 when the tool refuses or fails, or 2 for wrong arguments.

ferris-idea call <directory> <tool> [<json arguments>]

capabilities

Lists the capability registry: every operation with its id, version, access and rights; --json gives the full records, a capability id its schemas.

ferris-idea capabilities [--json] [<domain> | <id>]

agent-bench

Runs every recorded run of every task of the agent benchmark and prints the suite report as JSON; exits with 0 only when every run passes.

ferris-idea agent-bench [<tasks folder>] [--out <file>]

drive

Drives the running window through its own UI driver: find, click, type, press keys, take screenshots or run a UI script. The window shows a bar while a script drives it.

ferris-idea drive [--project <folder>] [--pid <pid>] [--json] <verb> …
verbs:
status | stop
snapshot [<locator>] [--text] [--depth <n>]
find <locator> [--wait] [--timeout <ms>]
click <locator> [--count <n>] [--right] [--modifiers cmd,alt]
context-click <locator> | hover <locator>
press <keys> [--on <locator>]
type <locator> <text> [--clear]
scroll <locator> [--dx <n>] [--dy <n>] [--pixels]
drag <locator> (--to <locator> | --offset <x>,<y>)
expect <locator> <matcher> [<text>] [--not] [--contains | --regex] [--timeout <ms>]
screenshot <file.png> [--of <locator>] [--region <x>,<y>,<w>,<h>]
open <path> [--line <n>] [--column <n>]
tool-window <id> [open | focus | close]
settings <page> | settings close
invoke <action id>
type-text <text>
popup | choose <index> | choose --label <label> | dismiss
list
trace start | trace stop [<folder in the workspace>] | trace status
run <script.toml>
locators: role=button[name="Commit"], id=project-tree >> role=treeitem[name~="main"], text="No problems"

launch

Starts the window on the folder; without one, on the most recent project that still exists, else the Welcome window.

ferris-idea launch [folder]

container-exec

An interactive shell inside a running container on this terminal; the Containers window runs it in a terminal tab.

ferris-idea container-exec <engine> <container>

ui

Opens the window on a folder; --selftest opens a window on a temporary folder and checks it with key presses and clicks (do not type or click while it runs).

ferris-idea ui [folder [--trust] | --selftest [--list-groups]]

edit

Opens one file in a single editor window.

ferris-idea edit <file>

Developer commands

These start experiments of the window toolkit. They are for working on Ferris IDEA itself.

ferris-idea spike-scroll [file]
ferris-idea spike-input
ferris-idea spike-editor [file]
ferris-idea spike-layout [--interactive] [directory]