Gemini CLI Installation

Gemini CLI is an open-source AI agent that brings the power of Gemini directly into your terminal. You can query and edit large codebases, generate apps from images or PDFs, and automate complex workflows.

Official Links

Prerequisites

Ensure you have Node.js and npm installed on your system.

Installation

To install the Gemini CLI globally on your machine, run the following command:

Bash

npm install -g @google/gemini-cli          

Running Gemini CLI

For most users, we recommend running Gemini CLI with the gemini command:

Bash

gemini          

Verification

To verify that the installation was successful, check the version or run a simple prompt:

Bash

gemini --version