# How to Update Gemini CLI: Simple Tutorial

The Gemini CLI is an open-source command-line tool that brings the power of Gemini (by Google) to your terminal. Keeping it up to date means you’ll get the latest features, fixes, and better performance.

Author: Vladislav Guzey
Published: 2025-11-02
Canonical: https://proflead.dev/posts/how-to-update-gemini-cli/


The Gemini CLI is an open-source command-line tool that brings the power of Gemini (by Google) to your terminal. Keeping it up to date means you’ll get the latest features, fixes, and better performance. In this simple tutorial, I'm going to show how to update your Gemini CLI to the latest version.

## How to Update Gemini CLI

Follow these simple steps depending on how you installed it.

### 1. Check your Gemini CLI current version

Open your terminal and type:
```bash
gemini --version
```


![Check your current Gemini CLI version](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q0kuepgbl2phqwjdts9q.png)


### 2. Update if you installed via npm (globally)

If you installed the CLI globally using npm, run:

```bash
npm install -g @google/gemini-cli@latest
```

Or you can use:
```bash
npm update -g @google/gemini-cli
```

### 3. If you use npx (no global install)

If you run the CLI directly via npx, you don’t need to update manually. Just run:

```bash
npx https://github.com/google-gemini/gemini-cli
```



### 4. Verify the update

After updating, run the command below to be sure you’re on the new version. 

```bash
gemini --version
```

Then test a simple command like:

```bash
gemini --help
```



## Conclusion

Updating the Gemini CLI is quick and keeps your tools sharp. The key steps: check version, update via npm (or use npx), and verify the update.

After the update, you can [resume an earlier Gemini CLI session](/posts/gemini-cli-tutorial-session-management/) or try [project instructions and custom commands](/posts/gemini-cli-10-pro-tips/) in your next task.

For more in-depth details and tutorials about Gemini please check these links:
- [Gemini CLI + MCP: Complete Install in Minutes](https://proflead.dev/posts/gemini-cli-tutorial/)
- **Official GitHub repo**: [google-gemini/gemini-cli](https://github.com/google-gemini/gemini-cli)
- **Official docs**: [Gemini CLI Documentation on Google Cloud](https://docs.cloud.google.com/gemini/docs/codeassist/gemini-cli)
 

