Gemini CLI
This repository contains the Gemini CLI, a command-line AI workflow tool that connects to your tools, understands your code and accelerates your workflows.
With the Gemini CLI you can:
Query and edit large codebases in and beyond Gemini's 1M token context window.
Generate new apps from PDFs or sketches, using Gemini's multimodal capabilities.
Automate operational tasks, like querying pull requests or handling complex rebases.
Use tools and MCP servers to connect new capabilities, including media generation with Imagen, Veo or Lyria
Ground your queries with the Google Search tool, built in to Gemini.
Quickstart
Prerequisites: Ensure you have Node.js version 18 or higher installed. Run the CLI: Execute the following command in your terminal: npx https://github.com/google-gemini/gemini-cli Or install it with: npm install -g @google/gemini-cli Pick a color theme Authenticate: When prompted, sign in with your personal Google account. This will grant you up to 60 model requests per minute and 1,000 model requests per day using Gemini 2.5 Pro.
... continue reading