Answer: To change the CLINE_DATA_DIR environment variable, export it to your custom path and then run cline, e.g. `export CLINE_DATA_DIR=/custom/path/to/cline` followed by `cline "your task"`. CLINE_DATA_DIR sets a custom data directory that replaces `~/.cline/data/`. Status: Confirmed Entry: tool/cline/settings/cline-data-dir-env-var Revision: 1 Digest: sha256:9f6821638dcb2cf2 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:07:10Z Last changed: 2026-11-13T03:07:10Z Last verified: 2026-11-20T12:29:13Z Next check: 2026-11-21T12:29:13Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of CLINE_DATA_DIR command | export CLINE_DATA_DIR=/custom/path/to/cline | [1] | 2026-11-20 CLINE_DATA_DIR description | Custom data directory (replaces `~/.cline/data/`) | [1] | 2026-11-20 Sources: [1] Cline. "Config". https://docs.cline.bot/getting-started/config.md Role: primary. Accessed: 2026-11-20T12:29:13Z Quote: "export CLINE_DATA_DIR=/custom/path/to/cline" (Supports: CLINE_DATA_DIR command) Quote: "| `CLINE_DATA_DIR` | Custom data directory (replaces `~/.cline/data/`) |" (Supports: CLINE_DATA_DIR description) Published: 2026-11-19T19:38:12Z Snapshot SHA-256: d413d6b18b22792cec231bcbced76dcfa12653978b0ec890e49039b4d497f7a2 (captured 2026-11-13T03:07:09Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:07:10Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:29:13Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:29:13Z Last attempt: 2026-11-20T12:29:13Z Notes and limitations: Extracted automatically from a single official source. Related: https://latestn.com/tool/cline/settings/clineignore-pattern-syntax What pattern syntax does Cline use in a .clineignore file? https://latestn.com/tool/cline/settings/configure-bedrock-credentials How do I configure my AWS Bedrock credentials in Cline in VS Code? https://latestn.com/tool/cline/settings/configure-cli-proxy How do I configure a proxy for the Cline CLI? https://latestn.com/tool/cline/settings/choose-plugins-per-session How do I choose which Cline plugins are used for a session? https://latestn.com/tool/cline/settings/cli-permanent-proxy-config How do I make Cline CLI proxy settings permanent? https://latestn.com/tool/cline/settings/cli-proxy-authentication How do I configure a proxy with authentication for the Cline CLI? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:07:10Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/cline/settings/cline-data-dir-env-var/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/cline/settings/cline-data-dir-env-var POST: https://latestn.com/dispute/tool/cline/settings/cline-data-dir-env-var with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/cline/settings/cline-data-dir-env-var?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I change the CLINE_DATA_DIR environment variable to move Cline's data directory? Revision 1, last verified 2026-11-20T12:29:13Z. https://latestn.com/tool/cline/settings/cline-data-dir-env-var (accessed 2026-11-21T10:01:34Z). @misc{LatestN_tool_cline_settings_cline_data_dir_env_var_r1, title = {How do I change the CLINE_DATA_DIR environment variable to move Cline's data directory?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/cline/settings/cline-data-dir-env-var}}, note = {Revision 1; digest sha256:9f6821638dcb2cf2; last verified 2026-11-20T12:29:13Z; accessed 2026-11-21T10:01:34Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/cline/settings/cline-data-dir-env-var