cline config command to environment variables for automation.
The Config Command
Launch the configuration interface:Configuration Tabs
Navigate between tabs using arrow keys.Settings Tab
View and edit global and workspace-specific settings:- Global State: Settings that apply across all workspaces
- Workspace State: Settings specific to the current directory
Rules Tab
Manage Cline rules that guide AI behavior:.clinerulesfiles: Project-specific rules in your workspace- Cursor rules: Import rules from Cursor editor format
- Windsurf rules: Import rules from Windsurf editor format
Workflows Tab
View and manage workflows:- List available workflows
- View workflow definitions
- Workflows appear as slash commands in interactive mode
Hooks Tab
Configure hooks for custom logic integration:- Enable/disable hooks globally
- View configured hook scripts
- Hooks run at key points in Cline’s workflow
Hooks must be enabled via settings. Use
cline config to toggle hooks-enabled.Skills Tab
Manage skills that extend Cline’s capabilities:- View available skills
- Enable/disable specific skills
- Skills provide specialized instructions for specific tasks
Configuration Directory
Cline stores configuration in~/.cline/data/:
Viewing Logs
For debugging, view the log file:Environment Variables
CLINE_DIR
Override the default configuration directory:~/.cline/data/.
Use cases:
- Running multiple isolated Cline configurations
- Team-shared configurations
- CI/CD with custom state directories
CLINE_COMMAND_PERMISSIONS
Restrict which shell commands Cline can execute:| Field | Type | Description |
|---|---|---|
allow | string[] | Glob patterns for allowed commands. If set, only matching commands are permitted. |
deny | string[] | Glob patterns for denied commands. Deny rules take precedence over allow. |
allowRedirects | boolean | Whether to allow shell redirects (>, >>, <). Default: false |
Using —config Flag
Run Cline with a custom configuration directory:- Running isolated Cline instances
- Testing different configurations
- Separating work and personal setups
Configuration for Local Providers
Ollama
Configure context window size for Ollama:LM Studio
Configure max tokens for LM Studio:Importing Configuration
From VS Code Extension
If you use the Cline VS Code extension, the CLI automatically detects and can share some settings. However, the CLI maintains its own configuration for terminal-specific features.From Other CLI Tools
See Installation & Setup for importing configurations from:- Codex CLI
- OpenCode
Configuration Best Practices
For Development
Use the default configuration with workspace-specific rules:For CI/CD
Use environment variables and--yolo mode:
For Teams
Share configuration via version control:Troubleshooting
Configuration Not Persisting
- Check write permissions on
~/.cline/data/ - Ensure
CLINE_DIRisn’t set to a read-only location - Verify the config directory exists
Environment Variables Not Working
- Ensure variables are exported:
export CLINE_DIR=/path - Check for typos in variable names
- Verify JSON syntax for
CLINE_COMMAND_PERMISSIONS

