Start using Gemini CLI in seconds. No installation required.
Make sure you have Node.js 18+ installed on your system.
The fastest way to use Gemini CLI is with npx:
npx https://github.com/google-gemini/gemini-cli
Or install globally with npm:
npm install -g @google/gemini-cli
gemini
Pick a color theme: When you first launch, you can choose your preferred color theme for the CLI interface.
When prompted, sign in with your personal Google account. With Gemini 2.5 Pro, you get up to 60 model requests per minute and 1,000 model requests per day.
For advanced use or increased limits: If you need to use a specific model or require a higher request capacity, you can use an API key:
export GEMINI_API_KEY="YOUR_API_KEY"
For other authentication methods, including Google Workspace accounts, see the authentication guide .
Start a project from a new directory:
cd new-project/
gemini
> Write me a Gemini Discord bot that answers questions using a FAQ.md file I will provide
Or work with an existing project:
git clone https://github.com/google-gemini/gemini-cli
cd gemini-cli
gemini
> Give me a summary of all of the changes that went in yesterday
Once the CLI is running, you can interact with Gemini from your shell. Try generating code, automating tasks, and more. See the official examples for inspiration.