Installation Guide
Choose your operating system to get started with Gemini CLI installation.
Prerequisites
- ✓Node.js 16.0 or higher
Required for npm installation
- ✓Google AI API Key
Get it from Google AI Studio
- ✓Terminal/Command Prompt
Basic command line knowledge
Quick Install (All Platforms)
If you have Node.js installed, you can use npm to install Gemini CLI:
# Install globally using npm
npm install -g @google/gemini-cli
# Verify installation
gemini --version
Alternative Installation Methods
Using Yarn
yarn global add @google/gemini-cli
Using Homebrew (macOS/Linux)
brew install gemini-cli
From Source
# Clone the repository
git clone https://github.com/google-gemini/gemini-cli.git
cd gemini-cli
# Install dependencies
npm install
# Build and link
npm run build
npm link