Skip to main content

Global Options

These options are available across all Cline CLI commands.

Mode Options

boolean
Description: Run in Act mode (default)Behavior: Cline actively uses tools to accomplish tasks - reading files, writing code, executing commands, and using a headless browser.Example:
boolean
Description: Run in Plan modeBehavior: Cline gathers information and creates a detailed plan before implementation. He explores the codebase, asks clarifying questions, and presents a strategy for approval.Example:
boolean
Description: Enable yolo/yes mode (auto-approve all actions)Behavior:
  • Automatically approves all actions without user confirmation
  • Forces plain text output mode (no interactive UI)
  • Exits process automatically when task completes
  • Useful for automation, CI/CD, and scripting
Example:
Yolo mode bypasses safety confirmations. Only use in controlled environments where you trust Cline to make changes autonomously.

Model Configuration

string
Description: Specify which AI model to use for the taskBehavior: Overrides the configured model for this session only. The setting is not persisted.Supported Models:
  • Anthropic: claude-sonnet-4-5-20250929, claude-opus-4-20250514
  • OpenAI: gpt-4o, gpt-4-turbo, o1, o1-mini
  • Moonshot: kimi-k2.5, kimi-k1.5
  • Google: gemini-2.0-flash-exp, gemini-1.5-pro
  • And more (depends on your provider)
Example:
boolean | number
Description: Enable extended thinking with a token budgetBehavior:
  • Without value: Uses default 1024 token budget
  • With value: Uses specified token budget
  • Allows the model to “think” more deeply about complex problems
  • Useful for architecture decisions, complex debugging, and system design
Example:
string
Description: Set the reasoning effort level for the modelValid Values: none, low, medium, high, xhighBehavior: Controls how much computational effort the model puts into reasoning. Higher effort may produce better results but takes longer.Example:

Output Options

boolean
Description: Show verbose output including reasoningBehavior:
  • Displays detailed reasoning from the AI model
  • Shows additional debug information
  • Helpful for understanding decisions and troubleshooting
Example:
boolean
Description: Output messages as JSON instead of styled textBehavior:
  • Forces plain text mode (no Ink UI)
  • Each message is a JSON object with consistent structure
  • Suitable for parsing and processing by other tools
  • Ideal for CI/CD integration and scripting
JSON Structure:
Example:

Directory Options

string
Description: Set the working directory for the taskBehavior: Changes the directory where Cline operates. All file operations are relative to this path.Example:
string
Description: Path to Cline configuration directoryBehavior: Override the default ~/.cline/data/ directory. Useful for managing multiple configurations or using project-specific settings.Default: ~/.cline/data/Example:
You can also set the CLINE_DIR environment variable instead of using --config every time.

Safety Options

number
Description: Timeout in seconds for yolo modeDefault: 600 seconds (10 minutes)Behavior: Automatically stops the task after the specified duration in yolo mode. Prevents runaway processes.Example:
number
Description: Maximum consecutive mistakes before halting in yolo modeBehavior: Safety mechanism that stops execution if Cline makes too many errors in a row. Helps prevent damage in automated workflows.Example:
boolean
Description: Reject first completion attempt to force re-verificationBehavior: Forces Cline to review and verify his work before marking a task complete. Improves quality but takes longer.Example:

Task Management

string
Description: Resume an existing task by IDBehavior:
  • Loads previous task context and conversation
  • Optional prompt becomes a follow-up message
  • Get task IDs from cline history
Example:

Environment Variables

CLINE_DIR

Description: Override the default configuration directory Default: ~/.cline/data/ Usage:

CLINE_COMMAND_PERMISSIONS

Description: Restrict which shell commands Cline can execute Format: JSON object with allow, deny, and allowRedirects fields Fields:
array
Glob patterns for allowed commands. If specified, only matching commands are permitted.Pattern Matching:
  • * matches any characters
  • ? matches a single character
  • Setting allow on anything will deny all others
Example:
array
Glob patterns for denied commands. Deny rules take precedence over allow rules.Example:
boolean
Whether to allow shell redirects (>, >>, <, etc.). Defaults to false.Example:
Rule Evaluation:
  1. Check for dangerous characters (backticks outside quotes, unquoted newlines)
  2. Parse command into segments split by operators (&&, ||, |, ;)
  3. If redirects detected and allowRedirects is not true, command is denied
  4. Each segment is validated against deny rules first, then allow rules
  5. Subshell contents ($(...) and (...)) are recursively validated
  6. All segments must pass for the command to be allowed
Examples:

Configuration Files

Cline stores configuration and state in several JSON files:

globalState.json

Location: ~/.cline/data/globalState.json Contains:
  • Global settings and preferences
  • Task history metadata
  • Mode settings (act/plan)
  • UI preferences

secrets.json

Location: ~/.cline/data/secrets.json Contains:
  • API keys and credentials (stored securely)
  • OAuth tokens
  • Provider authentication details
Never commit secrets.json to version control or share it publicly.

workspace/

Location: ~/.cline/data/workspace/ Contains:
  • Workspace-specific state and settings
  • Per-project configurations

tasks/

Location: ~/.cline/data/tasks/ Contains:
  • Task history and conversation data
  • Previous task contexts
  • Message logs

Debugging

Log Files

Location: ~/.cline/log/ View Logs:
Log Contents:
  • API request/response logs
  • Error stack traces
  • State changes
  • Command executions

Verbose Mode

Enable verbose output to see detailed reasoning:

JSON Mode for Debugging

Use JSON output to inspect message structure:

Best Practices

For Development

For Automation

For CI/CD

For Production