G
google-gemini/gemini-cli
An open-source AI agent that brings the power of Gemini directly into your terminal.
在 GitHub 查看 ↗链接已于 2026-11-12 核查 · HTTP 200 · 打开的是厂商自己的官网
安装与配置
客户端配置(取自该仓库的安装命令)
{
"mcpServers": {
"google-gemini-gemini-cli": {
"command": "npx",
"args": ["@google/gemini-cli"]
}
}
}解析自我们于 2026-10-26 抓取的该仓库 README;我们未执行过。
command/args 来自仓库写明的安装命令;不确定时请以该项目 README 为准。
VS Code(.vscode/mcp.json —— 键名是 servers)
{
"servers": {
"google-gemini-gemini-cli": {
"command": "npx",
"args": ["@google/gemini-cli"]
}
}
}VS Code 顶层键是 <code>servers</code>,其余与上面那份相同。
Claude Code(命令行)
claude mcp add --transport stdio google-gemini-gemini-cli -- npx @google/gemini-cli
Claude Code 不收 JSON 文件,用这条命令直接加。
配置项的键名以你的客户端为准:客户端与 CLI
- ★ 数取值
- 108,818 ★ · google-gemini/gemini-cli · 取自 GitHub 搜索 API · (2026-11-13 20:00:50 核对)
- 来源明细
- 从该仓库的 GitHub 页面直接读取 · 条目类型:MCP 服务
- 收录与活跃
- 收录于 2026-10-26 · 最近见到 2026-11-14 · 共见到 21 次 · 被 1 个来源列出
- 安装
npx @google/gemini-cli
常见问题(答案都来自我们的记录)
怎么安装?
该仓库给出的安装命令是
npx @google/gemini-cli。我们的记录里它是仓库自己提供的;不保证在你的客户端上直接可用。它适合谁 / 用来做什么?
我们还没有为它记录标签。
谁维护它、还在更新吗?
仓库
google-gemini/gemini-cli;我们收录于 2026-10-26;最近见到 2026-11-14。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。> [!NOTE]
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
> Unpaid tier and Google One users: Gemini CLI was replaced by Antigravity
> CLI on June 18th, 2026. To learn more, see our
> blog post.
> Gemini CLI has not been optimized for Gemini 4 Argon. To use Gemini 4
> Argon, please use Antigravity.
# Gemini CLI
> [!NOTE]
> Gemini CLI is not optimized for the latest Gemini models. For the best coding
> experience with Gemini models use
> Antigravity CLI
Gemini CLI is an open-source AI agent that brings the power of Gemini directly
into your terminal. It provides lightweight access to Gemini, giving you the
most direct path from your prompt to our model.
Learn all about Gemini CLI in our documentation.
## 📦 Installation
See
Gemini CLI installation, execution, and releases
for recommended system specifications and a detailed installation guide.
### Quick Install
#### Run instantly with npx
bash
# Using npx (no installation required)
npx @google/gemini-cli
#### Install globally with npm
bash
npm install -g @google/gemini-cli
#### Install globally with Homebrew (macOS/Linux)
bash
brew install gemini-cli
#### Install globally with MacPorts (macOS)
bash
sudo port install gemini-cli
#### Install with Anaconda (for restricted environments)
bash
# Create and activate a new environment
conda create -y -n geminienv -c conda-forge nodejs
conda activate geminienv
# Install Gemini CLI globally via npm (inside the environment)
npm install -g @google/gemini-cli
## Release Channels
See Releases for more details.
### Preview
New preview releases will be published each week at UTC 23:59 on Tuesdays. These
releases will not have been fully vetted and may contain regressions or other
outstanding issues. Please help us test and install with preview tag.
bash
npm install -g @google/gemini-cli@preview
### Stable
New stable releases will be published each week at UTC 20:00 on Tuesdays, this
will be the full promotion of last week's preview release + any bug fixes
and validations. Use latest tag.
bash
npm install -g @google/gemini-cli@latest
### Nightly
New releases will be published each day at UTC 00:00. This will be all changes
from the main branch as represented at time of release. It should be assumed
there are pending validations and issues. Use nightly tag.
bash
npm install -g @google/gemini-cli@nightly
## 📋 Key Features
### Code Understanding & Generation
Query and edit large codebases
Generate new apps from PDFs, images, or sketches using multimodal capabilities
Debug issues and troubleshoot with natural language
### Automation & Integration
Automate operational tasks like querying pull requests or handling complex
rebases
Use MCP servers to connect new capabilities, including
media generation with Imagen, Veo or Lyria
Run non-interactively in scripts for workflow automation
## 🔐 Authentication Options
Choose the authentication method that best fits your needs:
### Option 1: Sign in with Google (OAuth login using your Google Account)
#### When using a paid Code Assist License from your organization, remember to set the Google Cloud Project
bash
# Set your Google Cloud Project
export GOOGLECLOUDPROJECT="YOURPROJECTID"
gemini
### Option 2: Gemini API Key
✨ Best for: Developers who need specific model control or paid tier access
> CLI on June 18th, 2026. To learn more, see our
> blog post.
> Gemini CLI has not been optimized for Gemini 4 Argon. To use Gemini 4
> Argon, please use Antigravity.
# Gemini CLI
> [!NOTE]
> Gemini CLI is not optimized for the latest Gemini models. For the best coding
> experience with Gemini models use
> Antigravity CLI
Gemini CLI is an open-source AI agent that brings the power of Gemini directly
into your terminal. It provides lightweight access to Gemini, giving you the
most direct path from your prompt to our model.
Learn all about Gemini CLI in our documentation.
## 📦 Installation
See
Gemini CLI installation, execution, and releases
for recommended system specifications and a detailed installation guide.
### Quick Install
#### Run instantly with npx
bash
# Using npx (no installation required)
npx @google/gemini-cli
#### Install globally with npm
bash
npm install -g @google/gemini-cli
#### Install globally with Homebrew (macOS/Linux)
bash
brew install gemini-cli
#### Install globally with MacPorts (macOS)
bash
sudo port install gemini-cli
#### Install with Anaconda (for restricted environments)
bash
# Create and activate a new environment
conda create -y -n geminienv -c conda-forge nodejs
conda activate geminienv
# Install Gemini CLI globally via npm (inside the environment)
npm install -g @google/gemini-cli
## Release Channels
See Releases for more details.
### Preview
New preview releases will be published each week at UTC 23:59 on Tuesdays. These
releases will not have been fully vetted and may contain regressions or other
outstanding issues. Please help us test and install with preview tag.
bash
npm install -g @google/gemini-cli@preview
### Stable
New stable releases will be published each week at UTC 20:00 on Tuesdays, this
will be the full promotion of last week's preview release + any bug fixes
and validations. Use latest tag.
bash
npm install -g @google/gemini-cli@latest
### Nightly
New releases will be published each day at UTC 00:00. This will be all changes
from the main branch as represented at time of release. It should be assumed
there are pending validations and issues. Use nightly tag.
bash
npm install -g @google/gemini-cli@nightly
## 📋 Key Features
### Code Understanding & Generation
Query and edit large codebases
Generate new apps from PDFs, images, or sketches using multimodal capabilities
Debug issues and troubleshoot with natural language
### Automation & Integration
Automate operational tasks like querying pull requests or handling complex
rebases
Use MCP servers to connect new capabilities, including
media generation with Imagen, Veo or Lyria
Run non-interactively in scripts for workflow automation
## 🔐 Authentication Options
Choose the authentication method that best fits your needs:
### Option 1: Sign in with Google (OAuth login using your Google Account)
#### When using a paid Code Assist License from your organization, remember to set the Google Cloud Project
bash
# Set your Google Cloud Project
export GOOGLECLOUDPROJECT="YOURPROJECTID"
gemini
### Option 2: Gemini API Key
✨ Best for: Developers who need specific model control or paid tier access
收录徽章(可选)
想把收录标记放进 README 就复制这行,可选,不影响收录。
[](https://anclum.com/zh/s/google-gemini-gemini-cli/)
- 来源
- github · https://github.com/google-gemini/gemini-cli
- Traction
- 108,818 ★
- 收录于
- 今天