Elffuss BraidHub

kikocis/continue public

Branch: main
80eede9a6f83 docs: Guide for Continue CLI for a Documentation writing agent (#7988) Erica Hughberg,
..
.github/
docs/
media/
spec/
src/
stubs/
test-fixtures/
.env.example234 B
.gitignore160 B
.npmignore225 B
.releaserc.json993 B
AGENTS.md3.1 KiB
BUILD.md2.4 KiB
CHANGELOG.md8.2 KiB
README.md1.3 KiB
build.mjs3.8 KiB
eslint.config.js4.9 KiB
package-lock.json661.7 KiB
package.json5.2 KiB
smoke-test.mjsexecutable6.5 KiB
tsconfig.build.json317 B
tsconfig.json783 B
validate-aliases.mjsexecutable6.2 KiB
vitest.config.ts633 B
vitest.e2e.config.ts333 B
vitest.setup.ts1.0 KiB

README.md

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)