Terminal-first interface
Use Gemini from the terminal for interactive prompting or scripted `-p` requests, keeping the workflow close to the codebase and shell tools you already use.
Gemini CLI is an open-source AI agent for the terminal that brings Gemini into command-line workflows. It supports interactive prompting, headless scripting, and project-specific extensions for developers.

Gemini CLI is an open-source AI agent for the terminal that brings Gemini into command-line workflows. It is presented as a lightweight way to prompt the model directly from the shell, with support for interactive use, headless scripting, and project-specific context.
The product combines code understanding, file and shell operations, Google Search grounding, and MCP-based extensibility. The docs also show GitHub workflow support, conversation checkpointing, and output formats that include text and JSON for automation use cases.
Use Gemini from the terminal for interactive prompting or scripted `-p` requests, keeping the workflow close to the codebase and shell tools you already use.
Query and edit large codebases, generate apps from PDFs, images, or sketches, and troubleshoot issues with natural-language prompts.
Use built-in Google Search grounding, file operations, shell commands, and web fetching to connect the model to local and external context.
Run headless with text or JSON output, pipe content from stdin, and redirect results to files for batch jobs and automation.
Extend behavior with MCP servers, custom commands, and custom context files such as `GEMINI.md` to tailor sessions to your project.
Save and resume conversations, share chat history, and use GitHub-oriented workflows such as pull request reviews and issue triage.
Use Gemini CLI to inspect a repository, summarize changes, explain architecture, or troubleshoot code while staying in the terminal.
Run prompts non-interactively in shell scripts or CI jobs, pipe files into the model, and capture text or JSON output for downstream steps.
Use the built-in commands and checkpointing features to branch conversations, save progress, and return to a previous state during longer sessions.
Connect MCP servers, custom commands, and project context files to adapt Gemini CLI to a specific team or repository.
Use the GitHub Action guidance for pull request reviews, issue triage, and on-demand assistance in repository workflows.
Gemini CLI can be started from the terminal after installing it with `npx`, `npm`, or Homebrew. The docs also show a basic `gemini` command for interactive use and `gemini -p` for headless prompts.
It is designed for developers working in the command line, and the docs describe use in scripting, automation, CI/CD pipelines, and GitHub workflows.
Gemini CLI supports both interactive sessions and headless mode. In headless mode it can accept prompts from command-line arguments or stdin, and it can return text or JSON output for automation.
The site lists a free tier for Google-account login and also documents API key and Vertex AI authentication options. The pricing page on the site is not available, so paid-plan details are not confirmed there.
The docs mention limits such as checkpoint storage locations, clipboard tool requirements for `/copy`, and that preview or nightly releases may contain regressions or outstanding issues. Headless usage also relies on valid authentication and a supported environment.