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
|
```bash
|
||||||
npm install -g @google/gemini-cli
|
npm install -g @google/gemini-cli
|
||||||
|
```
|
||||||
|
|
||||||
|
Then, run the CLI from anywhere:
|
||||||
|
|
||||||
|
```bash
|
||||||
gemini
|
gemini
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -15,14 +15,17 @@ This is the recommended way for end-users to install Gemini CLI. It involves dow
|
||||||
- **Global install:**
|
- **Global install:**
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Install the CLI globally
|
|
||||||
npm install -g @google/gemini-cli
|
npm install -g @google/gemini-cli
|
||||||
|
```
|
||||||
|
|
||||||
# Now you can run the CLI from anywhere
|
Then, run the CLI from anywhere:
|
||||||
|
|
||||||
|
```bash
|
||||||
gemini
|
gemini
|
||||||
```
|
```
|
||||||
|
|
||||||
- **NPX execution:**
|
- **NPX execution:**
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Execute the latest version from NPM without a global install
|
# Execute the latest version from NPM without a global install
|
||||||
npx @google/gemini-cli
|
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:
|
Before using sandboxing, you need to install and set up the Gemini CLI:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# install gemini-cli with npm
|
|
||||||
npm install -g @google/gemini-cli
|
npm install -g @google/gemini-cli
|
||||||
|
```
|
||||||
|
|
||||||
# Verify installation
|
To verify the installation
|
||||||
|
|
||||||
|
```bash
|
||||||
gemini --version
|
gemini --version
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue