fix(docs): clarify global installation in readme (#3781)
This commit is contained in:
parent
fadc477001
commit
80c81f2a4c
|
@ -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
|
||||
```
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue