跳至主要內容

Gemini CLI

Google's open-source terminal agent that brings Gemini models to your codebase and shell

收錄於 AiTop3 最後更新: geminicli.com

Gemini CLI 是什麼?

Gemini CLI is an open-source command-line agent from Google, released under the Apache 2.0 license, that brings Gemini models into the terminal. It can query and edit large codebases, generate apps from images, PDFs or sketches, run shell commands, search and fetch the web, and automate tasks in scripts through a headless mode. Projects can give it lasting instructions in GEMINI.md files, and it can be extended with MCP servers, extensions, agent skills, hooks and custom commands. It also offers plan mode, subagents, checkpointing, sandboxing and IDE integration. It installs with npm or Homebrew. Since June 18, 2026, free individual users and Google AI Pro, Ultra and Google One accounts have been moved to Antigravity CLI, which Google recommends for Gemini 4 models. Gemini CLI remains positioned for Gemini Code Assist Standard and Enterprise, Vertex AI and paid Gemini API keys.

主要功能

讓Gemini CLI有別於多數已收錄程式設計工具的 5 項功能。

  • Codebase agent in the terminal

    Reads, queries and edits large codebases and runs shell commands.

  • Built-in tools

    File management, web search and fetch, and task planning with todos.

  • GEMINI.md context

    Project files that give the model persistent instructions.

  • MCP and extensions

    Connect MCP servers and add extensions, skills, hooks and custom commands.

  • Headless mode

    Runs non-interactively inside scripts and automation.

常見問題

關於 Gemini CLI 的常見問題,簡短解答。

Is Gemini CLI open source?

Yes. The source code is on GitHub under the Apache License 2.0.

What is the relationship to Antigravity CLI?

On June 18, 2026, Antigravity CLI replaced Gemini CLI for free-tier and Google One users and for Google AI Pro and Ultra plans. Google recommends Antigravity for Gemini 4 models.

Who can still use Gemini CLI?

It is positioned for Gemini Code Assist Standard and Enterprise, Code Assist for GitHub, Vertex AI and Gemini API keys, where usage is billed per token.

Gemini CLI 的替代工具

其他已收錄的程式設計工具,依編輯評分排序。 查看所有替代工具

Lovable

AI app builders第 1 名
最適合
Non-developers building web apps
價格
$25/mo 起
9.3 比較

OpenRouter

AI model APIs for developers第 1 名
最適合
Many models behind one key
價格
Usage-based API 起
9.0 比較

Google AI Studio

AI model APIs for developers第 2 名
最適合
Building with Gemini
價格
Usage-based API 起
8.9 比較