Global Options
These options are available across all Cline CLI commands.Mode Options
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:
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:
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
Model Configuration
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)
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
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
Description: Show verbose output including reasoningBehavior:
- Displays detailed reasoning from the AI model
- Shows additional debug information
- Helpful for understanding decisions and troubleshooting
Description: Output messages as JSON instead of styled textBehavior:Example:
- 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
Directory Options
Description: Set the working directory for the taskBehavior: Changes the directory where Cline operates. All file operations are relative to this path.Example:
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:Safety Options
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:
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:
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
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
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 withallow, deny, and allowRedirects fields
Fields:
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
Glob patterns for denied commands. Deny rules take precedence over allow rules.Example:
Whether to allow shell redirects (
>, >>, <, etc.). Defaults to false.Example:- Check for dangerous characters (backticks outside quotes, unquoted newlines)
- Parse command into segments split by operators (
&&,||,|,;) - If redirects detected and
allowRedirectsis not true, command is denied - Each segment is validated against deny rules first, then allow rules
- Subshell contents (
$(...)and(...)) are recursively validated - All segments must pass for the command to be allowed
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
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:
- API request/response logs
- Error stack traces
- State changes
- Command executions