The Apollo CLI is the developer surface for the same agents you work on in the Playground. Both edit the same program and run on the same Apollo-1 runtime, so a change pushed from one is a commit the other sees. Use the CLI when you want to edit the program files in your own editor, have a coding agent such as Claude Code or Cursor author them, or script work in CI.
A common split: developers keep the files, runs and branches in the CLI, while the rest of the team reads conversations, traces and plain-language changes in the Playground. For every command and flag, see the CLI documentation.
#A few names differ
Some CLI commands use other names for things you know from the Playground:
| In the Playground | CLI commands |
|---|---|
| workspace | apollo project |
| sandbox database | apollo mockdb |
| branch, commit | apollo branch, also available as apollo version. See Branches and commits for how the developer docs name them. |
#Install and sign in
You need Node.js 20 or later.
npm install -g @aui.io/apollo
apollo loginapollo login opens the Playground's sign-in page in your browser and returns you to the terminal, so you use the same account and see the same organizations and agents. apollo doctor checks the setup if something does not work. See Installation for other ways to sign in.
#The everyday loop
- Bring the agent into a local folder, called a checkout:
apollo agent import. - Edit the program under
bundle/src/, yourself or with a coding agent. The checkout includes guidance files that teach coding agents how the program is written. - Check the structure:
apollo validate. - Replay the agent's scripted cases to see that nothing broke:
apollo regress --follow. - Save your changes as a new commit on your branch:
apollo push -m "Add the chat convenience fee".
A push does not change what customers get. To make a commit live, use Make live in the Playground's Branches window or apollo version live <tag>. See Make a commit live, lock a branch, and roll back.
The CLI workflows page covers testing against your local edits, comparing commits, merging branches and running evaluations.
#Pull after the Playground pushes
When someone pushes from the Playground, the new commit is saved on AUI's side and your checkout does not know about it yet. Before you edit files again, run:
apollo pullIf you skip this, your next push is refused because the branch moved on without you. The CLI names the newer commit; bring it in with apollo merge-from <tag>, or push yours as a new branch with apollo push --new-version.
apollo pull refuses to overwrite local edits, so push what you have, or set it aside, first.
#See CLI work in the Playground
- Conversations you start with
apollo chatappear in All threads. Filter by Created from > CLI to find them. See Find and filter threads. - Each conversation a regression or an evaluation runs is an ordinary thread you can open and read turn by turn, with its reasoning.
apollo openopens the Playground on the checkout's agent and commit, andapollo open --thread <id>opens one conversation. Add--printto print the link instead of opening a browser.
#Learn more
- Hello world: build a first agent end to end with the CLI
- Command reference
- Workflows
- Configuration