Complete Documentation

Gemini CLI Documentation

Everything you need to know about using Gemini CLI effectively. From basic commands to advanced automation workflows.

Quick Start

Installation
Get Gemini CLI up and running in minutes
Authentication
Set up secure access to Gemini API
First Commands
Run your first AI-powered commands
Configuration
Customize CLI behavior and preferences

Core Features

Discover the powerful capabilities that make Gemini CLI an essential tool for modern development workflows.

Code Generation
Generate high-quality code in multiple programming languages

Examples:

Create React components
Generate API endpoints
Write unit tests
Code Analysis
Analyze existing codebases for improvements and insights

Examples:

Security analysis
Performance optimization
Code quality review
Interactive Chat
Have natural conversations about your code and projects

Examples:

Ask coding questions
Get explanations
Brainstorm solutions
Workflow Automation
Automate repetitive development tasks

Examples:

Git commit messages
Documentation generation
Code refactoring

API Reference

Complete reference for all commands, options, and configuration settings.

Core Commands
Essential commands for daily development
generate
analyze
chat
help
Configuration
Customize and configure your CLI experience
config
auth
profile
theme
Advanced Features
Power user features and integrations
batch
pipeline
webhook
plugin

Example Usage

See Gemini CLI in action with real-world examples and use cases.

Code Generation

Code Generation Examples
# Generate a React component
gemini generate "Create a responsive login form component with validation"

# Generate API endpoints
gemini generate "Create a REST API for user management with CRUD operations"

# Generate tests
gemini generate "Write unit tests for the user service class" --file user.service.js

Code Analysis

Code Analysis Examples
# Analyze a single file
gemini analyze --file src/components/UserForm.tsx

# Analyze git changes
gemini analyze --git-diff

# Security analysis
gemini analyze --security --directory src/

Need Help?

Can't find what you're looking for? We're here to help you get the most out of Gemini CLI.