1.3 KiB
1.3 KiB
Continue CLI
The Continue CLI is a customizable command line coding agent.
Installation
npm i -g @continuedev/cli
Usage
cn
Headless Mode
cn --headless "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
Each terminal window maintains its own separate session, so you can have multiple concurrent conversations without them interfering with each other.
Advanced Usage
# Resume session with specific assistant
cn --resume --config my-assistant
# Resume session in headless mode
cn --resume --headless
Command Line Options
--headless: Run in headless mode (no TUI)--config <path>: Specify assistant configuration path--resume: Resume the last session for this terminal<prompt>: Optional prompt to start with
Session Storage
Sessions are stored in ~/.continue-cli/sessions/ and are automatically managed per terminal window using environment variables like:
TERM_SESSION_IDSSH_TTYTMUXSTY
If none of these are available, the process ID is used as a fallback.