Skip to content

Using the CLI

Common tasks

The command for the question you actually have.

Every command here is real output of --help on the current release. If a row does not cover your case, catalyst <verb> --help is the next step, and asking your coding agent the same question in plain words usually beats remembering flags.

Question Command
Am I set up? catalyst ready
What is broken, in machine-readable form? catalyst ready --json
Who am I signed in as? catalyst me
Which AI accounts exist? catalyst accounts
What can this CLI do on this cloud? catalyst capabilities
Is the runtime too old? catalyst runtime status
Make this machine run Catalyst’s work catalyst setup --runner (see Self-hosting)
Which self-hosted computers run our work, and how many runners are free? catalyst hosts
Rename a self-hosted computer catalyst hosts rename studio-mac build-mac
Remove a self-hosted computer from the workspace catalyst hosts remove studio-mac
See what the runners are working on catalyst running
Question Command
What is running right now? catalyst running
What is queued on my team? catalyst queue --team ENG
Why is my ticket not running? catalyst explain ENG-42
What has this ticket been through? catalyst explain ENG-42 --history (or catalyst history ENG-42)
Follow everything live catalyst watch
Follow one ticket live catalyst watch --ticket ENG-42
Question Command
Show my issues catalyst query issues --team ENG
Read one ticket catalyst query issue ENG-42
Search everything catalyst query search "webhook retry"
Show the pull request for a ticket catalyst query pull 123 (or PRs linked to a ticket: catalyst query pulls --ticket ENG-42)
Comment on a ticket catalyst write comment ENG-42 --body "..."
Move a ticket’s state catalyst write state ENG-42 --state-type started
Label a ticket catalyst write label ENG-42 --add bug
File a ticket catalyst write create --team ENG --title "..." --description "..."
Question Command
What needs me? catalyst ask list
What needs anyone? catalyst ask list --anyone
Raise a decision catalyst ask raise --team ENG --title "..." --option "A" --option "B" --default "A" --blocks ENG-42
Release a stuck ticket catalyst release ENG-42 --because "the secret was rotated"
Preview a release first catalyst release ENG-42 --dry-run
Release a whole failure class catalyst release --class <failure-class> --team ENG --because "the provider outage ended"
Question Command
Which teams exist? catalyst team list
Is my team ready? catalyst team check ENG
Map my Linear stages to Catalyst’s stages catalyst team map ENG (previews; apply with --yes --plan-hash <hash>)
Adopt Catalyst’s stages wholesale catalyst team adopt ENG
What is our WIP limit? catalyst project wip-limit get --team ENG
Change the WIP limit catalyst project wip-limit set 8 --team ENG
What env var names does this repo need? catalyst env inventory (run in the checkout)
Store a secret for a repository catalyst secret set STRIPE_API_KEY --repo myorg/myrepo --command 'op read op://...'
Set a plain environment variable for a repository catalyst var set LOG_LEVEL --repo myorg/myrepo (type the value at the prompt)
Read the workspace’s environment declaration catalyst environment read

Without local sync, every row above reads from the cloud. Local sync, a replica of your workspace plus a local event file, is an opt-in for ad hoc SQL or many local agents reading the same data. It is off unless you start it. In the current release replica start --detach runs it as an unsupervised writer. Check its status after a crash or reboot.

The events rows are the way to follow, wait on and query Catalyst’s events. They read the cloud by default, from the CLI release after 0.14.7; add --from-cache to read the opt-in local event file. In 0.14.7 and earlier they read only the local file, and catalyst watch follows changes live without local sync.

Question Command
Turn on local sync catalyst replica start --detach
Is the replica fresh? catalyst replica status --probe
Run SQL on the local copy catalyst replica sql "select identifier, state from issues where team_key = 'ENG' limit 5"
What events arrived? catalyst events tail
Wait for one ticket’s next event catalyst events wait-for --ticket ENG-42
The last phase completion on a ticket catalyst events query --ticket ENG-42 --type relay.phase.completed --limit 1