Elffuss BraidHub

kikocis/continue public

main · 1.3 KiBRenderedRawPermalink
1# Continue CLI
2
3The Continue CLI (`cn`) is a customizable command line coding agent.
4
5![Continue CLI Demo](./media/demo.gif)
6
7## Installation
8
9```bash
10npm i -g @continuedev/cli
11```
12
13## Usage
14
15```bash
16cn
17```
18
19### Headless Mode
20
21```bash
22cn -p "Generate a conventional commit name for the current git changes."
23```
24
25### Session Management
26
27The CLI automatically saves your chat history for each terminal session. You can resume where you left off:
28
29```bash
30# Resume the last session in this terminal
31cn --resume
32
33# List recent sessions and choose one to resume
34cn ls
35
36# List sessions in JSON format (for scripting)
37cn ls --json
38```
39
40## Command Line Options
41
42- `-p`: Run in headless mode (no TUI)
43- `--config <path>`: Specify agent configuration path
44- `--resume`: Resume the last session for this terminal
45- `<prompt>`: Optional prompt to start with
46
47## Commands
48
49- `cn`: Start an interactive chat session
50- `cn ls`: List recent sessions with TUI selector to choose one to resume
51- `cn login`: Authenticate with Continue
52- `cn logout`: Sign out of current session
53- `cn remote`: Launch a remote instance
54- `cn serve`: Start HTTP server mode
55
56### Session Listing (`cn ls`)
57
58Shows recent sessions, limited by screen height to ensure it fits on your terminal.
59
60- `--json`: Output in JSON format for scripting (always shows 10 sessions)