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

How to install and configure Gemini CLI?

2025-08-23 1.0 K
Link directMobile View
qrcode

The following steps are required to install and configure the Gemini CLI:

environmental preparation

  • Make sure Node.js is installed (version 18 or above).
  • You can download and install the latest version from the Node.js website.

Installation

  • Run it through npx: Execute thenpx https://github.com/google-gemini/gemini-cli
  • global installation: Implementationnpm install -g @google/gemini-cli

Authentication Configuration

  • Personal Google Account: After running gemini, the system will lead to logging into your Google account for authentication.
  • API key: Generate keys from Google AI Studio, set environment variables in terminalexport GEMINI_API_KEY="YOUR_API_KEY"

After the installation is complete, rungeminiYou can enter the interactive mode, and will be prompted to choose a color theme when you run it for the first time.

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