Reference · Reference
Cline CLI Cheat Sheet
Search and one-click copy every Cline CLI (Cline CLI 2.0) command by category. Covers CLI commands, flags, slash commands, keyboard shortcuts, and configuration.
Last updated:
Version: Cline CLI 2.0 (npm cline v3.0.x) | Updated July 2026
How to use
Expand how to useCollapse how to use
- 1
Search commands
Type a keyword to filter across command names, flags, descriptions, and examples at once.
- 2
Filter by category
Switch between CLI commands, flags, slash commands, keyboard shortcuts, config, and workflows to reach what you need fast.
- 3
One-click copy
Use the copy button to copy a command to your clipboard and paste it straight into your terminal or Cline session.
Latest updates
Recent notable updates to Cline CLI. See the full history at the bottom of the page.
cline v3.0.x (July 2026)
- Verified against the npm
clinepackage v3.0.39 series; the 74 listed items are unchanged - ClinePass enabled for all CLI users; refreshed Plan/Act accent colors (Act = blue, Plan = amber) and changed the default
--thinkinglevel to Medium - Gracefully handles malformed tool calls from weaker models like DeepSeek; fixed
switch_to_act_modeto take effect immediately from Plan mode
--worktree flag added (2026)
--worktreeauto-creates an isolated git worktree under~/.cline/worktrees/and runs the task there- Works with
--taskIdand--continueso you can resume a task inside the isolated worktree - CLI auto-update now uses
npm updateto apply updates reliably while preserving the installed release channel (e.g. nightly)
CLI Commands
cline
Examples
clineStart an interactive sessioncline "task"
Examples
cline "refactor this module to use async/await"Start with a taskcline auth
Examples
cline authStart auth configurationcline config
Examples
cline configShow current configurationcline connect
Examples
cline connectChoose an adapter and connectcline mcp
Examples
cline mcpManage MCP serverscline dev
Examples
cline devLaunch developer toolscline doctor
Examples
cline doctorDiagnose and repair configcline history
Examples
cline historyShow session historycline hook
Examples
cat payload.json | cline hookPass a hook payloadcline plugin install <source>
Notes
- --npm treats the source as an npm package; --git as a git repository
- --force replaces an existing install for the same source
Examples
cline plugin install ./my-pluginInstall from a local pathcline schedule
Examples
cline scheduleManage scheduled agentscline hub
Examples
cline hubManage the hub daemoncline update
Examples
cline updateUpdate to the latest versioncline version
Examples
cline versionShow versioncline kanban
Examples
cline kanbanLaunch the kanban appCLI Flags
-V, --version
Examples
cline -VShow version-p, --plan
Examples
cline -p "design migration plan"Start with planning--json
Examples
cline --json "list TODO comments"Get results as JSON--auto-approve <boolean>
Examples
cline --auto-approve true "run tests and fix failures"Run without confirmations-t, --timeout <seconds>
Examples
cline --timeout 600 "run full test suite"Stop after up to 600 seconds-m, --model <model-id>
Examples
cline -m claude-sonnet-4 "fix this bug"Run with a specific model-v, --verbose
Examples
cline -v "explain this error"Run with verbose logs-c, --cwd <path>
Examples
cline -c ./packages/api "add tests"Run in a specific directory--config <path>
Examples
cline --config ./.cline-configSwitch the config directory--data-dir <path>
Examples
cline --data-dir ./tmp-clineRun with isolated state--thinking <level>
Examples
cline --thinking high "design an architecture"Raise the reasoning level--retries <count>
Examples
cline --retries 3 "refactor safely"Set the mistake limit--hooks-dir <path>
Examples
cline --hooks-dir ./.cline/hooksAdd a hooks directory--acp
Examples
cline --acpIntegrate with Zed/Neovim, etc.-i, --tui
Examples
cline -i "fix the layout issue"Open the TUI and iterate--id <session-id>
Examples
cline --id abc123 "continue the task"Resume a session-k, --key <api-key>
Examples
cline -k sk-... "quick task"Temporarily override the API key-P, --provider <id>
Examples
cline -P openai "summarize"Specify a provider-s, --system <prompt>
Examples
cline -s "You are a senior reviewer" "review PR"Replace the system prompt-z, --zen
Examples
cline -z "long running task"Run in the background-h, --help
Examples
cline --helpShow helpSlash Commands
/settings
/model
/account
/mcp
/compact
/undo
/clear
/history
/help
/quit
Keyboard
Configuration
~/.cline/data/settings
Examples
~/.cline/data/settingsDefault settings directory pathproviders.json
Examples
~/.cline/data/settings/providers.jsonProvider config filerules/
skills/
.cline/mcp.json
Examples
.cline/mcp.jsonPer-project MCP config.cline/agents.yaml
Examples
.cline/agents.yamlPer-project agent definitionsCLINE_DATA_DIR
Examples
CLINE_DATA_DIR=./.cline-data clineChange the data directoryCLINE_HUB_ADDRESS
CLINE_SESSION_BACKEND_MODE
CLINE_SANDBOX_DATA_DIR
CLINE_SANDBOX
CLINE_HOOKS_DIR
CLINE_BUILD_ENV
CLINE_DEBUG_PORT_BASE
CLINE_COMMAND_PERMISSIONS
Workflows
cline -p "design plan"
Examples
cline -p "design migration plan"1. Create a plancline "apply migration"2. Execute after approvalgit diff | cline "review these changes"
Examples
git diff | cline "review these changes"Review the diffcline --json "summarize" | jq -r '.text'
Examples
cline --json "summarize this changelog" | jq -r '.text'Extract just the result textcline --auto-approve true "run tests and fix failures"
Examples
cline --auto-approve true "run tests and fix failures"Run unattendedcat README.md | cline "summarize setup steps"
Examples
cat README.md | cline "summarize key setup steps"Summarize a READMEcline --timeout 600 "run full test suite"
Examples
cline --timeout 600 "run full test suite"Run with a 600-second capVersion history
The Cline CLI versions and key changes used to verify the data on this page.
- Verified against the npm
clinepackage v3.0.39 series; the 74 listed items are unchanged - ClinePass enabled for all CLI users; refreshed Plan/Act accent colors (Act = blue, Plan = amber) and changed the default
--thinkinglevel to Medium - Gracefully handles malformed tool calls from weaker models like DeepSeek; fixed
switch_to_act_modeto take effect immediately from Plan mode
--worktreeauto-creates an isolated git worktree under~/.cline/worktrees/and runs the task there- Works with
--taskIdand--continueso you can resume a task inside the isolated worktree - CLI auto-update now uses
npm updateto apply updates reliably while preserving the installed release channel (e.g. nightly)
- Full rewrite from the IDE sidebar to the terminal (released 2026-02-13); plan, approve, and iterate entirely in an interactive TUI
- Adds Tab to toggle Plan/Act, Shift+Tab to toggle auto-approve, and parallel subagent execution
--jsonor piped stdin switches to headless mode automatically;--acpintegrates with editors like Zed, Neovim, and JetBrains
About the Cline CLI Cheat Sheet
The Cline CLI Cheat Sheet lets you search and one-click copy the commands, flags, slash commands, keyboard shortcuts, configuration, and workflows of Cline's terminal agent (Cline CLI 2.0), grouped by category. The data is verified against the official documentation (docs.cline.bot) and the official changelog.
Key features
- Search across CLI commands, flags, slash commands, keyboard shortcuts, config, and workflows
- Filter by category to reach the right information fast
- One-click copy any command to paste into your terminal
- Includes Cline-specific concepts like Plan/Act modes and auto-approve
- Follows the official docs, with version history and source links
When it helps
- When moving from the Cline VS Code extension to the CLI (terminal)
- When you need to quickly check flags and modes like --auto-approve or Plan/Act
- When you want to recall slash commands or keyboard shortcuts
- When building headless or piped workflows
Frequently asked questions
How is the Cline CLI different from the Cline VS Code extension?
Cline CLI 2.0 is an agent that runs in the terminal instead of the IDE sidebar. It features an interactive TUI, headless execution, parallel subagents, and editor integration via ACP. This page covers the CLI (terminal) commands.
What are Plan/Act modes?
Plan mode has Cline propose a plan for you to review before executing; Act mode applies the actual changes. In the interactive TUI you toggle them with Tab, and on the command line you can start in Plan mode with -p / --plan.
How do I run autonomously without confirmations?
Add --auto-approve true to auto-approve all tools and run unattended. In the interactive TUI you can toggle auto-approve with Shift+Tab. Be mindful of your working directory and permissions when destructive operations are involved.
Which version is listed here?
This targets the Cline CLI 2.0 generation (the npm cline package v3.0.x series), verified against the official documentation and changelog as of July 2026. See the update history at the bottom of the page for details.
How do I install Cline?
Install with npm install -g cline, then set up authentication with cline auth. Update with cline update or npm update -g cline.