shepherd <command> [--json]. --json prints the raw answer and is what scripts should use. --session <name> talks to a named session instead of the default. shepherd --help lists everything below, and shepherd snapshot --help has the snapshot options.
Commands that destroy something ask for --confirm or --force. An unknown agent or task answers shepherd: unknown agent "x" with exit code 1.
Interface, server and sessions
Command
What it does
shepherd
Open the desktop app, starting the server first. Where the app cannot open (no screen, or not installed) it opens the terminal UI
shepherd --gui
Open the desktop app, or say why it cannot and point to --tui
shepherd --tui
Open the terminal UI (the multiplexer with the Shepherd section). SHEPHERD_NO_GUI=1 shepherd does the same without the flag
shepherd --session <name>
Use or create a named persistent session, a separate server with its own state
Stop the server, replace it with a new one (closes its terminals and agents), or reload config.toml
shepherd server agent-manifests, update-agent-manifests, reload-agent-manifests
Show, fetch or reload the agent detection manifests
shepherd update [--handoff]
Download and install the latest version
shepherd channel show, channel set stable|preview
Choose the update channel
shepherd integration install|uninstall|status
Manage the built-in agent integrations
shepherd completion <shell>
Print shell completions (for example zsh)
shepherd --default-config
Print the whole commented default config.toml, with every key and its default
shepherd config check, config reset-keys
Validate config.toml, or back it up and go back to the built-in keybindings
shepherd --skill, --shepherd-skill
Print the skill file for agents, or the Shepherd orchestration skill
Terminal control: workspaces, tabs, panes and agents
These talk to the same server over its socket and are what the terminal UI and the desktop app are built on. Panes are named like wA:p1; --current means the pane you are in.
Read an agent's terminal, press keys, submit a prompt, wait for a state, start a supported CLI in a pane, attach, or explain how its state was detected
notification show
Show a notification
api snapshot, api schema
Print the live session snapshot or the bundled API schema
The key bindings of the terminal UI call these same operations; see keyboard shortcuts.