Complete reference for all Cline CLI commands, flags, environment variables, and output formats.
For quick help in your terminal:
cline --help # Show all commands and global optionscline task --help # Show options for the task commandcline auth --help # Show options for the auth command
Running cline without a subcommand starts a task or opens interactive mode.
# Open interactive mode (no prompt)cline# Start a task with a promptcline "your prompt here"# Resume the most recent task for the current directorycline --continue
Options:
Option
Description
-a, --act
Start in Act mode. Cline executes actions immediately. (default)
-p, --plan
Start in Plan mode. Cline analyzes and plans before acting.
-y, --yolo
YOLO mode: auto-approve all actions, plain text output, exit on completion.
--auto-approve-all
Auto-approve all actions while keeping the interactive TUI.
-m, --model <id>
Override the model for this task (e.g., claude-sonnet-4-5-20250929, gpt-4o).
-i, --images <paths...>
Attach image files to the prompt.
--thinking [tokens]
Enable extended thinking. Default budget: 1024 tokens. Pass a number to customize.
--reasoning-effort <level>
Set reasoning effort: none, low, medium, high, or xhigh.
--max-consecutive-mistakes <n>
Maximum consecutive mistakes before halting (YOLO mode).
--json
Output messages as JSON (one object per line). Forces headless mode.
--timeout <seconds>
Maximum execution time before the task is stopped.
--continue
Resume the most recent task from the current working directory.
--double-check-completion
Reject the first completion attempt to force re-verification.
--auto-condense
Use AI-powered context compaction instead of mechanical truncation.
--hooks-dir <path>
Path to an additional hooks directory injected at runtime.
--acp
Run in ACP (Agent Client Protocol) mode for editor integration.
# Open interactive modecline# Start with an initial taskcline "Help me refactor this module to use async/await"# Start in Plan mode to review strategy firstcline -p "Design a caching layer for the API"
# Auto-approve everything (YOLO)cline -y "Run the test suite and fix any failures"# JSON output piped to jqcline --json "List all TODO comments" | jq -r 'select(.type == "say") | .text'# Task with a timeoutcline -y --timeout 600 "Run the full test suite"# Chain commandsgit diff | cline -y "explain" | cline -y "write a commit message"
# Work configurationcline --config ~/.cline-work "Review this PR"# Personal configuration with a different modelcline --config ~/.cline-personal -m gpt-4o "Help with this side project"