gemini-cli - 💡(How to fix) Fix Support GEMINI_CLI_ENABLE_AUTO_UPDATE environment variable [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
google-gemini/gemini-cli#26291Fetched 2026-05-01 05:52:47
View on GitHub
Comments
0
Participants
1
Timeline
2
Reactions
0
Participants
Timeline (top)
issue_type_added ×1labeled ×1
RAW_BUFFERClick to expand / collapse

What would you like to be added?

Support GEMINI_CLI_ENABLE_AUTO_UPDATE (or similar name) environment variable in addition to the https://geminicli.com/docs/reference/configuration/#general enableAutoUpdate setting.

Why is this needed?

GEMINI_CLI_ENABLE_AUTO_UPDATE (or similar name) would be useful to prevent autoupdate from triggering when launching gemini CLI outside of a directory that contains .gemini/settings.json file.

Additional context

Previous similar issues: https://github.com/google-gemini/gemini-cli/issues/7312 https://github.com/google-gemini/gemini-cli/issues/7872

extent analysis

TL;DR

Add support for a GEMINI_CLI_ENABLE_AUTO_UPDATE environment variable to control auto-update behavior.

Guidance

  • Introduce a new environment variable GEMINI_CLI_ENABLE_AUTO_UPDATE that overrides the enableAutoUpdate configuration setting when set.
  • Update the CLI to check for this environment variable and disable auto-update if it's set to a falsey value.
  • Consider adding documentation for the new environment variable in the configuration reference.
  • Review previous similar issues (e.g., #7312, #7872) to ensure the new solution addresses existing concerns.

Example

GEMINI_CLI_ENABLE_AUTO_UPDATE=false gemini

This example demonstrates how the environment variable could be used to disable auto-update when running the gemini CLI.

Notes

The exact implementation details may vary depending on the programming language and framework used by the gemini CLI.

Recommendation

Apply workaround: Add support for the GEMINI_CLI_ENABLE_AUTO_UPDATE environment variable to provide more control over auto-update behavior.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

gemini-cli - 💡(How to fix) Fix Support GEMINI_CLI_ENABLE_AUTO_UPDATE environment variable [1 participants]