Synopsis
Global options
These options are accepted by any command:Default command
Runningcline without a subcommand starts a task or opens interactive mode.
Mode selection behavior:
cline task (alias: t)
Run a new task with a prompt. Equivalent to cline "prompt".
cline auth
Configure authentication with an AI provider.
Supported providers:
cline history (alias: h)
Browse task history with pagination.
cline config
Open the interactive configuration view.
cline mcp add
Add an MCP server to ~/.cline/data/settings/cline_mcp_settings.json.
Options:
cline update
Check for updates and install the latest version.
cline version
Print the installed CLI version.
cline dev log
Open the debug log file in your default editor.
Environment variables
CLINE_DIR
Override the default configuration directory:
~/.cline/data/.
Use cases:
- Running isolated Cline instances (e.g., parallel CI jobs)
- Keeping separate configurations for different projects
- Testing configuration changes without touching your main setup
CLINE_COMMAND_PERMISSIONS
Restrict which shell commands Cline is allowed to execute:
Command evaluation order:
- Check for dangerous characters (backticks outside single quotes, unquoted newlines)
- Parse command segments split by operators (
&&,||,|,;) - If redirects are detected and
allowRedirectsis nottrue, deny the command - Validate each segment: deny rules are checked first, then allow rules
- Recursively validate subshell contents (
$(...)and(...)) - All segments must pass for the command to be allowed
JSON output format
When using--json, each message is written as a JSON object on its own line:
Optional fields:
Configuration files
Cline stores all data under~/.cline/ by default:
CLINE_DIR environment variable or --config flag changes the root from ~/.cline/data/ to your specified path.
Examples
Interactive development
Headless and automation
Piped input
Authentication
Isolated configurations
See also
Installation
Install Cline CLI and configure authentication.
Interactive mode
Keyboard shortcuts, slash commands, and file mentions.
Headless mode
Run Cline autonomously in scripts and CI/CD pipelines.