Gemini CLI: Terminal interface for Google Gemini API
CLI for Google Gemini AI with text, image, and multimodal interactions from terminal.
Learn more about Gemini CLI
Gemini CLI is a command-line tool that provides direct access to Google's Gemini AI models through an efficient terminal interface. Built for developers who prefer working in the command line, it supports text generation, multimodal inputs including images and documents, streaming responses, and conversation history management. The CLI wraps the Gemini API with intelligent configuration management, supporting multiple API keys, custom model selection, and session persistence. It's designed for rapid prototyping, automation scripts, and integrating Gemini's capabilities into development workflows. The tool supports both interactive and non-interactive modes, making it suitable for shell scripting, pipeline integration, and interactive AI-assisted development tasks.
Native Terminal Experience
Interact with Gemini AI without leaving your terminal environment. The CLI provides a streamlined, keyboard-driven interface with syntax highlighting, streaming responses, and conversation history. Perfect for developers who live in the command line and want instant AI assistance without context switching to web browsers or separate applications.
Multimodal Input Support
Process text, images, PDFs, and other file formats directly from the command line. Simply reference files in your prompts and Gemini CLI handles the multimodal context automatically. This enables powerful use cases like analyzing screenshots, processing documents, reviewing code with visual diagrams, and combining multiple data sources in a single query.
Scriptable and Pipeable
Integrate Gemini AI into shell scripts, CI/CD pipelines, and automation workflows with full support for stdin/stdout piping and non-interactive batch processing. Chain commands together, process files in bulk, or create custom automation scripts that leverage Gemini's intelligence. Exit codes and output formatting are designed for reliable programmatic usage.
import { GeminiCore } from '@google/gemini-cli/core';
const core = new GeminiCore();
const fileContent = await core.executeTool('read_file', {
path: './data/report.txt'
});
console.log(fileContent);Nightly release with admin allowlists for MCP servers and enhanced plan mode functionality.
- –Implement admin allowlist for MCP server configurations
- –Add retry logic for transient SSL/TLS errors
- –Add support for /extensions config command
- –Correct docs as skills and hooks are stable
Patch release fixing issues from the previous preview version.
- –Cherry-pick fix to patch version v0.28.0-preview.4
Patch release fixing issues from the previous preview version.
- –Cherry-pick fix to patch version v0.28.0-preview.3
See how people are using Gemini CLI
Top in Developer Tools
Related Repositories
Discover similar tools and frameworks used by developers
JetBrainsMono
Monospaced typeface optimized for coding with ligatures.
Yup
JavaScript schema validation with chainable API and type inference.
jsdom
Pure JavaScript implementation of web standards for Node.js.
scrcpy
Mirrors Android devices over USB/TCP with keyboard and mouse control, no root required.
n
A command-line utility for installing, switching between, and managing multiple Node.js versions on Unix-like systems.