Skip to content
Continue CLI logo

Continue CLI cheat sheet

$ cn Continue Official docs

Every command, flag and slash command for cn — Continue's terminal agent — the same agent as its IDE extensions, with hub-based models, rules and MCP. 14+ commands, verified July 2026.

Continue was acquired by Cursor and the CLI is winding down1.5.47 is the last release. Its docs still list cn login / /login, but those aren't in the shipped binary — sign in via the first-run prompt or CONTINUE_API_KEY.

Install
curl -fsSL https://raw.githubusercontent.com/continuedev/continue/main/extensions/cli/scripts/install.sh | bash
npm i -g @continuedev/cli        # cross-platform (needs Node 20+)
cn --version
Start & run
cn                              # interactive TUI session
cn "explain this repo"          # TUI, seeded with a prompt
cn -p "prompt"                  # headless: run once, print, exit
cn --resume                     # resume the most recent session
cn --model anthropic/claude-…   # add a hub model at launch
git diff --staged | cn -p "write a commit message"

Key flags

FlagWhat it does
-p, --printHeadless: print the response and exit
--format jsonOutput format (headless only)
--silentStrip <think> tags + whitespace (headless)
--resume / --fork <id>Resume the last session / fork one
--config <path|slug>Config file or hub slug
--readonly / --autoPlan mode / auto (all tools, no prompts)
--allow / --ask / --exclude <tool>Per-tool permissions (repeatable)
--mcp / --model / --rule <slug>Add a hub MCP / model / rule

In-session commands

Command / keyWhat it does
/help · /clear · /infoHelp · clear · token usage + cost
/model · /config · /mcpModel · config · MCP servers
/init · /compactCreate an AGENTS.md · summarize history
/resume · /sessions · /forkSession management
/skills · /import-skill <url>List / import skills
Shift+Tab · @ · !Cycle normal/plan/auto · file context · shell command

Subcommands: cn ls, cn review [--base <ref>] [--fix], cn checks [pr-url], cn serve.

Config
~/.continue/config.yaml         # same schema as the IDE extensions
~/.continue/permissions.yaml    # saved tool approvals

export CONTINUE_API_KEY=…       # headless / CI auth (or first-run browser login)
# reference secrets in config as ${{ secrets.MY_API_KEY }}
Common one-liners
cn -p "Generate a conventional commit message for the staged changes" --silent | git commit -F -
cn -p "Fix all ESLint errors in src/" --allow Write --allow Edit --allow Bash
cat error.log | cn -p "Explain what went wrong"
cn -p "Triage this error log" --config my-org/error-triage-assistant --format json

More CLI cheat sheets

Stop memorizing flags

Run Continue CLI — and every other agent — from one app

TheVibeFather orchestrates Continue CLI alongside every other coding CLI in one native macOS app. Bring the models you already pay for; keep your keys.