continue-custom/extensions/cli
2025-08-23 10:57:03 -07:00
..
.github move release, checks workflows 2025-08-20 17:43:03 -07:00
media Add 'extensions/cli/' from commit 'e27a5c87d520e28844c9eac10bc6d301feee4b5e' 2025-08-20 17:19:56 -07:00
spec chore: run prettier --write on cli 2025-08-20 17:57:35 -07:00
src chore: format 2025-08-23 10:57:03 -07:00
stubs chore: format 2025-08-21 17:38:41 -07:00
.env.example Add 'extensions/cli/' from commit 'e27a5c87d520e28844c9eac10bc6d301feee4b5e' 2025-08-20 17:19:56 -07:00
.gitignore Add 'extensions/cli/' from commit 'e27a5c87d520e28844c9eac10bc6d301feee4b5e' 2025-08-20 17:19:56 -07:00
.npmignore chore: add package-lock 2025-08-20 20:00:53 -07:00
.releaserc.json Add 'extensions/cli/' from commit 'e27a5c87d520e28844c9eac10bc6d301feee4b5e' 2025-08-20 17:19:56 -07:00
AGENTS.md chore: run prettier --write on cli 2025-08-20 17:57:35 -07:00
BUILD.md build with esbuild 2025-08-21 16:44:39 -07:00
build.mjs chore: format 2025-08-22 21:49:54 -07:00
CHANGELOG.md Add 'extensions/cli/' from commit 'e27a5c87d520e28844c9eac10bc6d301feee4b5e' 2025-08-20 17:19:56 -07:00
eslint.config.js Add 'extensions/cli/' from commit 'e27a5c87d520e28844c9eac10bc6d301feee4b5e' 2025-08-20 17:19:56 -07:00
package-lock.json Add tokenizer tests and fix auto-compact calculation to account for max_tokens 2025-08-22 11:19:19 -07:00
package.json fix: move dependencies to devDependencies and add @sentry/profiling-node 2025-08-22 11:01:44 -07:00
README.md Add 'extensions/cli/' from commit 'e27a5c87d520e28844c9eac10bc6d301feee4b5e' 2025-08-20 17:19:56 -07:00
smoke-test.mjs fix: windows smoke test 2025-08-22 08:45:10 -07:00
tsconfig.build.json Add 'extensions/cli/' from commit 'e27a5c87d520e28844c9eac10bc6d301feee4b5e' 2025-08-20 17:19:56 -07:00
tsconfig.json fix: update binary package lock, remove security checks from gui 2025-08-21 16:02:22 -07:00
validate-aliases.mjs fix: vaildate aliases fix core 2025-08-22 20:47:44 -07:00
vitest.config.ts Add 'extensions/cli/' from commit 'e27a5c87d520e28844c9eac10bc6d301feee4b5e' 2025-08-20 17:19:56 -07:00
vitest.e2e.config.ts Add 'extensions/cli/' from commit 'e27a5c87d520e28844c9eac10bc6d301feee4b5e' 2025-08-20 17:19:56 -07:00
vitest.setup.ts Add 'extensions/cli/' from commit 'e27a5c87d520e28844c9eac10bc6d301feee4b5e' 2025-08-20 17:19:56 -07:00

Continue CLI

The Continue CLI (cn) is a customizable command line coding agent.

Continue CLI Demo

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 session
  • cn ls: List recent sessions with TUI selector to choose one to resume
  • cn login: Authenticate with Continue
  • cn logout: Sign out of current session
  • cn remote: Launch a remote instance
  • cn 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)