Reprompt AI – Image to Prompt

Free image to prompt on Android · Google Play

Get
Reprompt.org

Gemini

How to update Gemini CLI

By Salman Ahmed, Reprompt editor · Last checked against the official docs

Run gemini update in your terminal, or reinstall the latest stable release with npm. Gemini CLI also updates itself automatically unless you turned that off. If you use a Google AI Pro, Ultra or free personal account, read the note below first: Gemini CLI stopped serving those accounts on June 18, 2026.

gemini update

Important: Google is replacing Gemini CLI with Antigravity CLI. Since June 18, 2026, Gemini CLI no longer serves requests for Google AI Pro and Ultra subscribers or for free Gemini Code Assist for individuals. It keeps working with Gemini Code Assist Standard or Enterprise licenses and with paid Gemini API keys. If your account is in the first group, updating will not bring it back; switch to Antigravity CLI.

Steps

Built-in command

  1. Run the update command. It updates Gemini CLI to the latest version.
    gemini update

npm

Stable releases come out every week. Omitting the tag also installs the latest stable release.

  1. Install the latest stable release globally.
    npm install -g @google/gemini-cli@latest
  2. Optional: try the weekly preview instead. Previews are not fully vetted and may have regressions.
    npm install -g @google/gemini-cli@preview

Homebrew (macOS, Linux)

  1. Refresh Homebrew's package list.
    brew update
  2. Upgrade the gemini-cli formula.
    brew upgrade gemini-cli

From source

  1. Pull the latest changes in your clone of the repository, then rebuild.
    npm run build

Check it worked

  1. Print the installed version and exit.
    gemini --version

If it fails

  • "command not found" when you run gemini after updating

    Gemini CLI is not on your PATH. If you installed it globally with npm, check that npm's global bin folder is in your PATH, then reinstall the latest version.

    npm install -g @google/gemini-cli@latest
  • "npm WARN deprecated node-domexception" or "deprecated glob" during the update

    These warnings come from older sub-dependencies. They are harmless: the update finishes and Gemini CLI works without any action.

  • UNABLE_TO_GET_ISSUER_CERT_LOCALLY on a work network

    Your company's firewall inspects TLS traffic. Tell Node.js to use your system's certificates first (PowerShell: $env:NODE_USE_SYSTEM_CA=1). If that fails, set NODE_EXTRA_CA_CERTS to the path of your company's root certificate.

    export NODE_USE_SYSTEM_CA=1
  • Requests stopped working on a Pro, Ultra or free account

    This is the June 18, 2026 change, not a broken update. Move to Antigravity CLI, or use a paid Gemini API key or a Gemini Code Assist Standard or Enterprise license.

Questions people ask

Does Gemini CLI update automatically?

Yes. The Enable Auto Update setting (general.enableAutoUpdate) is on by default. To turn it off, open /settings inside Gemini CLI, or set it to false in ~/.gemini/settings.json.

{ "general": { "enableAutoUpdate": false } }

How do I check my Gemini CLI version?

Run gemini --version (or gemini -v). It prints the version number and exits.

gemini -v

What is the latest version of Gemini CLI?

It changes every week, because a new stable release ships weekly. The official release notes list every version; the npm command above always installs the newest stable one.

How do I update Gemini CLI extensions?

Extensions update separately from the CLI. Update all of them at once:

gemini extensions update --all

Is Gemini CLI being discontinued?

For consumers, yes. Google announced on May 19, 2026 that Antigravity CLI replaces it, and Gemini CLI stopped serving Google AI Pro, Ultra and free personal accounts on June 18, 2026. Standard and Enterprise licenses and paid API keys keep access.

Related how-tos

  • How to update Claude Code

    Run claude update to get the latest Claude Code. Exact commands for the native installer, Homebrew, WinGet, npm and Linux, plus how to check your version.

  • Gemini updates: what's new and how to use it

    The Gemini app and Gemini CLI changes that matter in daily use, with who gets each one and how to start. Every item links to Google's own announcement.

Sources

Last checked: . We re-check this page every month and when the tool ships a release.

Get weekly AI insights, free

One email a week with AI news and insights from the Era of Minds newsletter.

Free. No spam, unsubscribe any time. By subscribing you agree to receive emails from Era of Minds. Form not showing? Subscribe on beehiiv.