Skip to content
Cline CLI logo

Cline CLI cheat sheet

$ cline Cline Bot Official docs

Every command, flag and slash command for cline — The Cline agent in your terminal — the same plan/act core as the VS Code extension, MCP + checkpoints. 13+ commands, verified July 2026.

A real, official standalone cline CLI (npm cline, by Cline Bot Inc.) that shares its agent core with the Cline IDE extension — not the third-party @yaegaki/cline-cli.

Install
npm install -g cline            # official package (bin: cline); needs Node 22+ to install
npm install -g cline@nightly    # nightly builds
Start & run
cline                                  # interactive TUI
cline "Audit this package and fix it"  # one-shot, then exit
cline -i "Let's work on this"          # interactive with a starting prompt
cat file | cline "Summarize this"      # pipe stdin
cline -P anthropic -m … -k sk-… "…"    # provider / model / key
cline kanban                           # board at http://localhost:3484

Key flags

FlagWhat it does
-p, --planRun in plan mode (default is act mode)
-i, --tuiInteractive multi-turn TUI
-P, --provider <id> / -m, --model <id>Provider / model
-k, --key <api-key>API key for this run (beats env vars)
--jsonNDJSON output (non-interactive)
-y, --yoloSkip approvals
-z, --zenDispatch to a background hub and exit
--acpACP mode for editor integration

In-session commands

Command / keyWhat it does
/help · /model · /accountHelp · model · account
/mcp · /settingsManage MCP servers · settings
/compact · /undoCompact context · rewind (checkpoints)
/clear · /history · /quitClear · sessions · exit
Tab · Shift+Tab · Ctrl+LPlan/Act · auto-approve all · clear view

Subcommands: cline auth <provider>, cline mcp …, cline history, cline schedule …, cline doctor, cline update.

Config
~/.cline/data/settings/providers.json   # API keys + provider config
~/.cline/data/settings/rules/           # global rules
.cline/mcp.json                         # project MCP servers

export ANTHROPIC_API_KEY=…   # or CLINE_API_KEY (with -P cline), OPENAI_API_KEY, OPENROUTER_API_KEY
Common one-liners
cline --yolo "Run tests and fix any failures"
git diff origin/main | cline "Review these changes for issues"
cline --json "List all TODO comments" | jq -r '.event.text // empty'
cline schedule create "Daily review" --cron "0 9 * * MON-FRI" --prompt "Review PRs opened yesterday"

More CLI cheat sheets

Stop memorizing flags

Run Cline CLI — and every other agent — from one app

TheVibeFather orchestrates Cline CLI alongside every other coding CLI in one native macOS app. Bring the models you already pay for; keep your keys.