Skip to main content
Cline configuration lives in two scopes:
  • Global configuration in ~/.cline/ (applies globally across all Cline applications, including IDE, CLI, and SDK)
  • Project configuration in .cline/ (applies only to the current workspace)

Configuration Directory Layout

Cline stores shared configuration across a few well-known locations. The primary root is ~/.cline/, with structured app state under ~/.cline/data/:
Additional global search paths supported by the code:
Project-level configuration lives in .cline/ at your repository root:
Notes:
  • Global provider settings, global settings, and MCP settings are stored under ~/.cline/data/settings/.
  • Global workflows resolve from ~/.cline/data/workflows/.
  • Global rules, hooks, skills, agents, plugins, and cron specs resolve directly under ~/.cline/.
  • Rules, hooks, plugins, and workflows may also be discovered from ~/Documents/Cline/ for compatibility.

What Goes Where?

  • Use global (~/.cline/) for defaults shared across all Cline applications (IDE, CLI, SDK) on your machine.
  • Use project (.cline/) for team-shared behavior that should travel with the repo.
Commit .cline/ files you want to share with your team. Keep secrets out of the repo.

Configure Through the CLI

Use the interactive config UI:
From there, you can view/edit:
  • Settings (global + workspace)
  • Rules
  • Skills
  • Hooks

Useful Configuration Commands

Use a custom configuration directory:
Or via environment variable:
View CLI logs when troubleshooting:

Environment Variables

CLINE_DATA_DIR

CLINE_COMMAND_PERMISSIONS

Restrict which shell commands Cline can execute:
Format:
Rules:
  • deny overrides allow
  • If allow is set, commands not matching allow are denied
  • allowRedirects controls shell redirects (>, >>, <), default false

Security Notes

Only use rules, hooks, skills, and plugins from sources you trust.
Hooks and plugins can execute code. Review them like any other executable artifact before adding them globally or to a project.