fix(docs): clarify global installation in readme (#3781)

This commit is contained in:
Pascal Birchler 2025-07-14 18:21:40 +02:00 committed by GitHub
parent fadc477001
commit 80c81f2a4c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 14 additions and 4 deletions

View File

@ -30,6 +30,11 @@ With the Gemini CLI you can:
```bash
npm install -g @google/gemini-cli
```
Then, run the CLI from anywhere:
```bash
gemini
```

View File

@ -15,14 +15,17 @@ This is the recommended way for end-users to install Gemini CLI. It involves dow
- **Global install:**
```bash
# Install the CLI globally
npm install -g @google/gemini-cli
```
# Now you can run the CLI from anywhere
Then, run the CLI from anywhere:
```bash
gemini
```
- **NPX execution:**
```bash
# Execute the latest version from NPM without a global install
npx @google/gemini-cli

View File

@ -7,10 +7,12 @@ This document provides a guide to sandboxing in the Gemini CLI, including prereq
Before using sandboxing, you need to install and set up the Gemini CLI:
```bash
# install gemini-cli with npm
npm install -g @google/gemini-cli
```
# Verify installation
To verify the installation
```bash
gemini --version
```