Answer: To export the default system prompt, run `GEMINI_WRITE_SYSTEM_MD=1 gemini` to write the built-in prompt to the project default path, or use `GEMINI_WRITE_SYSTEM_MD=~/prompts/DEFAULT_SYSTEM.md gemini` to write to a custom path. Status: Confirmed Entry: tool/gemini-cli/settings/export-default-system-prompt Revision: 1 Digest: sha256:7ff31f4456c9f43e (changes whenever the content changes) Timeline: Created: 2026-11-13T03:17:48Z Last changed: 2026-11-13T03:17:48Z Last verified: 2026-11-20T12:51:32Z Next check: 2026-11-21T12:51:32Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Default path command | GEMINI_WRITE_SYSTEM_MD=1 gemini | [1] | 2026-11-20 Custom path command | GEMINI_WRITE_SYSTEM_MD=~/prompts/DEFAULT_SYSTEM.md gemini | [1] | 2026-11-20 Sources: [1] Google. "System Prompt Override (GEMINI_SYSTEM_MD)". https://geminicli.com/docs/cli/system-prompt.md Role: primary. Accessed: 2026-11-20T12:51:32Z Quote: "`GEMINI_WRITE_SYSTEM_MD=1 gemini`" (Supports: Default path command) Quote: "`GEMINI_WRITE_SYSTEM_MD=~/prompts/DEFAULT_SYSTEM.md gemini`" (Supports: Custom path command) Published: 2026-10-16T02:36:07Z Snapshot SHA-256: f32d65071c659670145f560e83f6422561f6b5adaa7eb577b9172c320877265f (captured 2026-11-13T03:17:48Z) 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:17:48Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:51:32Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:51:32Z Last attempt: 2026-11-20T12:51:32Z Notes and limitations: Extracted automatically from a single official source (section "Export the default prompt (recommended)"). Related: https://latestn.com/tool/gemini-cli/settings/hook-environment-variables What environment variables are available to Gemini CLI hooks? https://latestn.com/tool/gemini-cli/settings/load-theme-file How do I load a custom theme from a file in Gemini CLI? https://latestn.com/tool/gemini-cli/settings/local-routing-configuration How do I configure Gemini CLI to use a local model for routing decisions? https://latestn.com/tool/gemini-cli/settings/enable-plan-mode-model-steering How do I enable Plan Mode and model steering in Gemini CLI? https://latestn.com/tool/gemini-cli/settings/enable-system-prompt-override How do I enable a custom system prompt override in Gemini CLI using GEMINI_SYSTEM_MD? https://latestn.com/tool/gemini-cli/settings/environment-variables-dotenv How do I set environment variables for Gemini CLI using .env files? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:17:48Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/gemini-cli/settings/export-default-system-prompt/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/gemini-cli/settings/export-default-system-prompt POST: https://latestn.com/dispute/tool/gemini-cli/settings/export-default-system-prompt with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/gemini-cli/settings/export-default-system-prompt?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I export the default system prompt in Gemini CLI? Revision 1, last verified 2026-11-20T12:51:32Z. https://latestn.com/tool/gemini-cli/settings/export-default-system-prompt (accessed 2026-11-21T09:54:26Z). @misc{LatestN_tool_gemini_cli_settings_export_default_system_prompt_r1, title = {How do I export the default system prompt in Gemini CLI?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/gemini-cli/settings/export-default-system-prompt}}, note = {Revision 1; digest sha256:7ff31f4456c9f43e; last verified 2026-11-20T12:51:32Z; accessed 2026-11-21T09:54:26Z} } 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/gemini-cli/settings/export-default-system-prompt