AI tools

Install Gemini CLI

Google's Gemini AI assistant in your terminal, free with a Google account.

  1. Install it
    Terminal
    npm install -g @google/gemini-cli

    Needs Node.js 22 or newer.

  2. Start it in your project and sign in
    Terminal
    cd ~/projects/my-app
    gemini

    Choose Sign in with Google. A free personal Google account works.

Check it worked

  1. Check the version
    Terminal
    gemini --version
Undo it
  1. Uninstall it
    Terminal
    npm uninstall -g @google/gemini-cli
  1. Install it
    Terminal · Ubuntu / Debian
    npm install -g @google/gemini-cli

    Needs Node.js 22 or newer.

  2. Start it in your project and sign in
    Terminal · Ubuntu / Debian
    cd ~/projects/my-app
    gemini

    Choose Sign in with Google. A free personal Google account works.

Check it worked

  1. Check the version
    Terminal · Ubuntu / Debian
    gemini --version
Undo it
  1. Uninstall it
    Terminal · Ubuntu / Debian
    npm uninstall -g @google/gemini-cli
  1. Install it
    PowerShell
    npm install -g @google/gemini-cli

    Needs Node.js 22 or newer.

  2. Start it in your project and sign in
    PowerShell
    cd ~\projects\my-app
    gemini

    Choose Sign in with Google. A free personal Google account works.

Check it worked

  1. Check the version
    PowerShell
    gemini --version
Undo it
  1. Uninstall it
    PowerShell
    npm uninstall -g @google/gemini-cli