Overseas access: www.kdjingpai.com
Bookmark Us
Current Position:fig. beginning " AI Answers

如何安装和配置Gemini CLI?

2025-08-23 645

安装和配置Gemini CLI需要以下几个步骤:

environmental preparation

  • 确保已安装Node.js(版本18或以上)。
  • 可从Node.js官网下载安装最新版本。

Installation

  • 通过npx运行: Execute thenpx https://github.com/google-gemini/gemini-cli
  • global installation: Implementationnpm install -g @google/gemini-cli

Authentication Configuration

  • 个人Google账户:运行gemini后,系统会引导登录Google账户进行认证。
  • API key:从Google AI Studio生成密钥,在终端设置环境变量export GEMINI_API_KEY="YOUR_API_KEY"

After the installation is complete, rungemini即可进入交互模式,首次运行时会提示选择颜色主题。

Recommended

Can't find AI tools? Try here!

Just type in the keyword Accessibility Bing SearchYou can quickly find all the AI tools on this site.

Top

en_USEnglish