Overview
The Apollo CLI (apollo) brings your entire workspace to the terminal. Manage tasks, query releases, check project status, search the knowledge base, take notes, review flashcards, and chat with Apollo Brain — all without leaving your editor or terminal.
The CLI is designed for three audiences: developers who live in the terminal, scripts/CI that need structured output, and Claude Code as a skill for AI-assisted workflows.
Installation
- npm
- From source
Quick Start
Authentication
The CLI uses a browser-based login flow (similar togh auth login or aws sso login):
Browser opens
Your browser opens to
apol.dev/cli-auth where you authenticate via your normal Apollo login.Token Management
| Command | Description |
|---|---|
apollo login | Authenticate via browser |
apollo logout | Clear stored credentials |
apollo whoami | Show current user and auth status |
CI / Automation
For non-interactive environments (CI pipelines, Claude Code), set theAPOLLO_TOKEN environment variable:
APOLLO_TOKEN is set, the CLI skips all interactive prompts.
Global Flags
These flags work with every command:Output Modes
The CLI automatically adapts its output based on context:| Mode | When | Behavior |
|---|---|---|
| Pretty | Interactive terminal (TTY) | Colored tables, spinners, icons |
| Plain | Piped output (no TTY) | Clean text, no ANSI codes |
| JSON | --json flag | Raw structured data for parsing |
process.stdout.isTTY. You never need to configure this manually.
Fuzzy Name Resolution
Every command that accepts a resource reference supports multiple formats:| Input | Resolution |
|---|---|
550e8400-... | Direct UUID pass-through |
"Fix authentication bug" | Exact name match (case-insensitive) |
"fix auth" | Fuzzy match — resolves if single clear match |
"deploy" | Ambiguous — prompts you to pick from candidates |
me | Special: resolves to the authenticated user (for --assignee) |
--json mode, ambiguous matches return an error with candidates instead of prompting.
Configuration
All CLI state lives in~/.apollo/:
Command Groups
Task Commands
Create, update, assign, complete, and bulk-manage tasks
Releases & Projects
Manage releases, assign tasks to releases, and export projects
Epics
View epics, drill into releases and tasks, track initiative progress
Developer Workflow
Git-aware task start/stop, smart ranking, saved filters, dependency trees
Knowledge Base
Search, create, and manage KB pages and folders
Personal Space
Notes, reminders, and flashcards with spaced repetition
Apollo AI
Chat with Apollo Brain from your terminal
Claude Code Integration
Use Apollo CLI as a Claude Code skill