Skip to content

CLI

The CLI lets you interact with a running Claude Yard instance from the terminal. Use it for scripting, automation, or quick commands without switching to the app.

Terminal window
node cli.mjs <command> [args...]

The CLI reads the server port from the config file. In development, set APP_CONFIG_PATH:

Terminal window
APP_CONFIG_PATH=~/.multi-claude/app-config.dev.json node cli.mjs state

Show current app state — open panels, active sessions, and layout.

Terminal window
node cli.mjs state

Open a new terminal panel. Spawns a Claude Code session by default.

Terminal window
node cli.mjs spawn # Claude session
node cli.mjs spawn --shell # Plain shell

Send keystrokes to a terminal panel.

Terminal window
node cli.mjs send <panelId> "hello world"

Close a terminal panel.

Terminal window
node cli.mjs close <panelId>

Send SIGINT (Ctrl+C) to a terminal panel.

Terminal window
node cli.mjs interrupt <panelId>

Set the panel layout.

Terminal window
node cli.mjs layout split-horizontal
node cli.mjs layout split-vertical

List all Claude sessions from disk.

Terminal window
node cli.mjs sessions

List all available MCP tools.

Terminal window
node cli.mjs tools