e31fcddb0dec Refactor session snapshot handling to use getCompleteStateSnapshot (#7929) Nate Sesti,
| .. | ||
| .github/ | ||
| docs/ | ||
| media/ | ||
| spec/ | ||
| src/ | ||
| stubs/ | ||
| test-fixtures/ | ||
| .env.example | 234 B | |
| .gitignore | 160 B | |
| .npmignore | 225 B | |
| .releaserc.json | 993 B | |
| AGENTS.md | 3.1 KiB | |
| BUILD.md | 2.4 KiB | |
| CHANGELOG.md | 8.2 KiB | |
| README.md | 1.3 KiB | |
| build.mjs | 3.8 KiB | |
| eslint.config.js | 4.9 KiB | |
| package-lock.json | 661.6 KiB | |
| package.json | 5.2 KiB | |
| smoke-test.mjs | executable | 6.5 KiB |
| tsconfig.build.json | 317 B | |
| tsconfig.json | 783 B | |
| validate-aliases.mjs | executable | 6.2 KiB |
| vitest.config.ts | 633 B | |
| vitest.e2e.config.ts | 333 B | |
| vitest.setup.ts | 1.0 KiB | |
README.md
Continue CLI
The Continue CLI (cn) is a customizable command line coding agent.

Installation
npm i -g @continuedev/cli
Usage
cn
Headless Mode
cn -p "Generate a conventional commit name for the current git changes."
Session Management
The CLI automatically saves your chat history for each terminal session. You can resume where you left off:
# Resume the last session in this terminal
cn --resume
# List recent sessions and choose one to resume
cn ls
# List sessions in JSON format (for scripting)
cn ls --json
Command Line Options
-p: Run in headless mode (no TUI)--config <path>: Specify agent configuration path--resume: Resume the last session for this terminal<prompt>: Optional prompt to start with
Commands
cn: Start an interactive chat sessioncn ls: List recent sessions with TUI selector to choose one to resumecn login: Authenticate with Continuecn logout: Sign out of current sessioncn remote: Launch a remote instancecn serve: Start HTTP server mode
Session Listing (cn ls)
Shows recent sessions, limited by screen height to ensure it fits on your terminal.
--json: Output in JSON format for scripting (always shows 10 sessions)