Skip to content

Gemini CLI installation, execution, and releases

This document provides an overview of Gemini CLI’s system requirements, installation methods, and release types.

  • Operating System:
    • macOS 15+
    • Windows 11 24H2+
    • Ubuntu 20.04+
  • Hardware:
    • “Casual” usage: 4GB+ RAM (short sessions, common tasks and edits)
    • “Power” usage: 16GB+ RAM (long sessions, large codebases, deep context)
  • Runtime: Node.js 20.0.0+
  • Shell: Bash, Zsh, or PowerShell
  • Location: Gemini Code Assist supported locations
  • Internet connection required

We recommend most users install Gemini CLI using one of the following installation methods. Note that Gemini CLI comes pre-installed on Cloud Shell and Cloud Workstations.

Install globally with npm:

Terminal window
npm install -g @google/gemini-cli

For most users, we recommend running Gemini CLI with the gemini command:

Terminal window
gemini

For a list of options and additional commands, see the CLI cheatsheet.

You can also run Gemini CLI using one of the following advanced methods:

Run instantly with npx. You can run Gemini CLI without permanent installation.

Terminal window
# Using npx (no installation required)
npx @google/gemini-cli

You can also execute the CLI directly from the main branch on GitHub, which is helpful for testing features still in development:

Terminal window
npx https://github.com/google-gemini/gemini-cli

Gemini CLI has three release channels: stable, preview, and nightly. For most users, we recommend the stable release, which is the default installation.

Stable releases are published each week. A stable release is created from the previous week’s preview release along with any bug fixes. The stable release uses the latest tag. Omitting the tag also installs the latest stable release by default.

Terminal window
# Both commands install the latest stable release.
npm install -g @google/gemini-cli
npm install -g @google/gemini-cli@latest