Skip to main content

Synopsis

Help Menu (Source of Truth)

Global Options

OptionDescription
-V, --versionOutput the version number
-p, --planRun in plan mode
--jsonOutput messages as JSON instead of styled text
--auto-approve <boolean>Set tool auto-approval for all tools (default: true)
-t, --timeout <seconds>Optional timeout in seconds (default: 0 for no timeout)
-m, --model <model-id>Model to use for the session with the selected provider
-v, --verboseShow verbose output
-c, --cwd <path>Working directory
--config <path>Configuration directory (default: ~/.cline/data/settings)
--data-dir <path>Use isolated local state at this directory path (default: ~/.cline)
--thinking <level>Set reasoning effort: none|low|medium|high|xhigh (default medium)
--retries <count>Maximum consecutive mistakes (retries) before halting
--hooks-dir <path>Directory path to additional hooks for runtime hook injection (default: ~/.cline/hooks)
--acpRun in Agent Client Protocol (ACP) mode for editor integration
-i, --tuiOpen the terminal user interface (TUI) for interactive sessions
--id <session-id>Resume an existing session by ID
-k, --key <api-key>API key override for this run
-P, --provider <id>Provider id (default: cline)
-s, --system <system-prompt>Override the default system prompt
-z, --zenStart a session that runs in the background hub
-h, --helpDisplay help for command

Commands

cline (default)

Start a task or enter interactive mode.

auth [options] [provider]

Configure authentication with an AI provider.

config [options]

Show current configuration.

connect [options] [adapter]

Connect to messaging platforms. See Connectors.

mcp

Manage MCP servers. See MCP.

dev

Developer tools and utilities.

doctor

Diagnose and fix configuration issues.

history|h [options]

List session history or manage saved sessions.

hook

Handle a hook payload from stdin.

plugin

Manage Cline plugins. Install plugins from file URLs, npm, git repositories, or local paths. See Plugins for full details and the plugin manifest format.
OptionDescription
--npmTreat source as an npm package
--gitTreat source as a git repository
--forceReplace an existing install for the same source
--jsonOutput result as JSON
--cwd <path>Install to <path>/.cline/plugins instead of the global directory
Try it with the TypeScript Navigation Plugin:

schedule

Manage scheduled agents. See Scheduling.

hub

Manage the local hub daemon.

update [options]

Check for updates and install if available.

version

Show Cline CLI version number.

kanban

Launch the kanban app and exit.

Environment Variables

VariableDescription
CLINE_DATA_DIRCustom configuration directory (replaces ~/.cline/data/)
CLINE_HUB_ADDRESSOverride hub address (default: 127.0.0.1:25463)
CLINE_SESSION_BACKEND_MODEForce backend mode (local, hub, remote, auto)
CLINE_SANDBOX_DATA_DIRSandbox session storage directory
CLINE_SANDBOXEnable sandbox mode
CLINE_HOOKS_DIRAdditional hooks directory
CLINE_BUILD_ENVSet to development for debug features
CLINE_DEBUG_PORT_BASEBase port for Node.js inspector
CLINE_COMMAND_PERMISSIONSJSON policy restricting shell commands (see below)

CLINE_COMMAND_PERMISSIONS

Restrict which shell commands the agent can execute:
FieldTypeDescription
allowstring[]Glob patterns for allowed commands. If set, only matching commands are permitted.
denystring[]Glob patterns for denied commands. Deny rules always take precedence.
allowRedirectsbooleanWhether to allow shell redirects (>, >>, <). Default: false.

JSON Output Format

When using --json, each message is a JSON object on its own line:
FieldTypeDescription
type"ask" or "say"Message category
textstringMessage content
tsnumberUnix timestamp in milliseconds
saystringSubtype when type is "say"
askstringSubtype when type is "ask"
reasoningstringModel reasoning (if available)
partialbooleantrue while streaming

Configuration Files