Learn to use the Gemini CLI to generate code, create images, and manage AI tasks from your terminal.
Get Started{`curl -fsSL https://cli.gemini.com/install.sh | sh source ~/.bashrc`}
{`iex (New-Object Net.WebClient).DownloadString('https://cli.gemini.com/install.ps1')`}
{`docker run -v $PWD:/app -w /app \\ -e GEMINI_API_KEY="your_api_key_here" \\ google/gemini-cli:latest`}
For Linux/macOS:
{`export GEMINI_API_KEY="your_api_key"`{`gemini code \\ --prompt "Create a Python API wrapper for Gemini" \\ --output file.py`}
{`gemini image \\ --prompt "Cyberpunk skyline at night" \\ --output cyberpunk_skylines/city.jpg`}
{`gemini debug \\ --file broken_code.py \\ --output fixed_code.py`}
{`gemini summarize \\ --content "Paste your long article here..." \\ --output summary.txt`}
Process multiple files at once with intelligent batch processing
Automatically regenerate content when source files change
Full control over model parameters and input/output formats
Get started with our command line interface to automate AI tasks, generate content, and optimize your workflow.
Create API Key