Quick Start

Let's help you get started with Gemini CLI quickly, from installation to running your first command

1

Install Gemini CLI

Gemini CLI supports multiple installation methods. Choose the one that fits your system:

# Install using npm

npm install -g @google/gemini-cli

# Or using Homebrew (macOS)

brew install gemini-cli

2

Configure API Key

Get your Google AI API Key and configure it:

# Set API Key

export GEMINI_API_KEY="your-api-key-here"

# Or use config command

gemini config set api-key YOUR_API_KEY

3

Run Your First Command

Verify your installation and run your first Gemini CLI command:

# Check version

gemini --version

# Get help

gemini --help

# Simple conversation

gemini "Hello, Gemini!"

Next Steps

Congratulations! You've successfully installed and configured Gemini CLI. Here's what you can do next: