Skip to content

Using the CLI

The CLI

Common catalyst commands, with help for the full list.

The catalyst command is what the installer puts on your machine and what the skills run underneath. Every verb takes --help, and most take --json for machine-readable output. This page covers the commands most customers need. Run catalyst --help for the full list and each command’s --help for its options.

Local sync, a replica of your workspace plus a local event file, is off unless you start it. Without it, every command reads from the cloud. catalyst events reads the cloud from the CLI release after 0.14.7; in 0.14.7 and earlier it still needs the local event file. See Local replica and watch.

Terminal window
catalyst --help
catalyst <verb> --help
Command What it does
catalyst login [--base-url <url>] [--start-replica] Sign in keylessly, as yourself. Or --key <personal-key> (or the CATALYST_CLOUD_TOKEN variable). --start-replica also turns on local sync, which is off unless you ask for it.
catalyst setup [--runner|--no-runner] [--team <key>] [--machine-name <name>] Set up Catalyst step by step: Linear, GitHub, repositories and a first ticket. --runner also makes this machine run Catalyst’s work in Docker; --no-runner keeps it from doing so. --machine-name names the machine; the default is its hostname. Same as catalyst onboard. See Self-hosting.
catalyst hosts [list] | remove <name-or-id> [--yes] | rename <name-or-id> <new-name> List self-hosted computers and each one’s runner capacity, in use and free. Members list; owners and admins remove or rename a computer. --json adds each computer’s ID. See Self-hosting.
catalyst runner status|stop|start|uninstall Check, stop, start or remove this computer’s self-hosted runner service.
catalyst runner update [--check] and catalyst runner auto-update status|on|off Check and apply an approved runner update, or manage its automatic update check.
catalyst update [--check] and catalyst update policy ... Check installed components against the approved release and manage update policy.
catalyst install [--skills-dir <dir>] [--force] Repair path for the skills; your agent’s own install command is the normal route.
catalyst status Machine, connection and skills at a glance.
catalyst notice The published notice, if any.
catalyst me Who you are signed in as.
catalyst ready [--json] [--offline] The readiness verdict for this machine and every project. --offline skips the release check.
catalyst accounts The AI accounts in your workspace.
catalyst capabilities [--json] What this CLI can do, the role each verb needs, and whether your cloud serves it.

Without a key, login is keyless: it opens a device-code flow, prints a short code and a URL, and connects you once you approve in the browser. The base URL defaults to CATALYST_CLOUD_BASE_URL or the cloud’s own address. Login writes ~/.config/catalyst-cloud/customer.json and caches your workspace contract beside it.

Command What it does
catalyst query <issues|issue <id>|pulls|pull <id>|projects|cycles|search <terms>|changes --since <cursor|head>> Read issues, pull requests, projects, cycles, search, or the change feed. Filters: --team, --project, --state, --limit, --all, --source replica|api. Without local sync, every read goes to the cloud.
catalyst explain <ticket> [--history] Why one ticket is or is not about to run; --history for attempts, rounds, holds and past releases.
catalyst running [--ticket T --phase P] What is running now.
catalyst queue [--team K] The queue for a team.
catalyst history <ticket> A ticket’s execution history.
catalyst watch [--team K] [--ticket T]... [--project P] [--exec CMD] Follow the change feed live from the cloud; --exec runs a command per change. Needs no local sync.
Command What it does
catalyst write <comment|state|label|create|reaction|attachment|session> ... Comment on a ticket, move its state, add or remove labels, file a ticket, react, attach a link, record a session. --help lists every flag.
catalyst ask <raise|accept|list> ... Raise a decision, accept one by its answering comment, list the open ones.
catalyst release <ticket> --because <what changed> Release every governor holding a ticket, or nothing, naming what a person must do. --dry-run first is free. The class form releases a whole failure class on one team.
Command What it does
catalyst team <list|check|map|adopt|migrate|checklist> ... Set up a Linear team as a Catalyst project: list teams, check readiness, map or adopt stages, migrate an existing workflow. Every write previews and needs your approval of that exact plan.
catalyst project wip-limit <get|set <n>|set default> [--team K] A project’s new-start limit. Members read; owners and admins set.
catalyst repo <agents-block <path>|agent-setup <path>> Add the Catalyst block to a checkout’s AGENTS.md, and make its agent layout portable. Working tree only.
catalyst repo status [--json] List visible repositories and whether each is paused.
catalyst repo pause <owner/name> --reason <text> and catalyst repo resume <owner/name> Pause or resume one repository. Owners and admins can change this state.
catalyst flow [--repo <owner/name>] [--period 2w] [--granularity hour|day] Show how a repository’s open pull requests change over time.
catalyst identity linear <status|options|set> Fix an unmatched Linear identity by choosing your user from the roster.
catalyst connections personal <linear|github> <start|status> Connect your own Linear or GitHub login.
Command What it does
catalyst environment [read] | propose --file <path>|--stdin [--approve] | approve Your workspace’s environment declaration. Needs login.
catalyst env <inventory [path] | check <file> | draft | migrate | import | shell> Inspect and prepare a repository’s environment declaration, migrate an older file, import values, or open a shell with its declared tools. import and draft --import-values sign in and store values; shell needs Docker. Run catalyst env --help for each form.
catalyst secret set <NAME> --repo <owner/name> [--command '<cmd>'] Store a secret for one repository, from a command, stdin, or a hidden prompt. Also secret import <file> --repo <owner/name>.
catalyst var set <NAME> [--repo <owner/name>] Store a plain environment variable, such as a log level, from stdin or a hidden prompt. With --repo it applies to one repository; without it, to the whole workspace. Also var import <file> for a .env file, with --names to take only some. Values never appear in the output.
catalyst replica <start|stop|status|sql|schema> Opt-in local sync: a SQLite copy of your workspace and the local event file. Off unless you start it. start --detach runs an unsupervised writer; check its status after a crash or reboot.
catalyst events <tail|wait-for|query|status> [--from-cache] Follow, wait on and query Catalyst’s events. They read the cloud by default; query reads GET /api/v1/events/query with --ticket, --type, --limit and --order. --from-cache reads the opt-in local event file instead. Cloud reads ship in the CLI release after 0.14.7; 0.14.7 and earlier read only the local file.
catalyst mcp <add|list|remove|status <name>> Register MCP servers using vault-secret names for authentication, or see one server’s state, grants and recent tool calls.
Command What it does
catalyst runtime <status|install|path|uninstall> A pinned Node this CLI manages itself, used when your system Node is too old.
catalyst legacy [--remove [--data] [--yes]] Find leftovers of the old local Catalyst runtime, and remove them only on a yes.
catalyst contract [--refresh] [--path <a.b.c>] The cached workspace contract; --path prints a sub-document.