Gemini CLI Essentials

Welcome to the essential guide for Gemini CLI. This tool empowers you to interact with Google's powerful AI models directly from your terminal.

Installation

First, ensure you have Node.js installed. Then, run the following command:

npm install -g @google/gemini-cli

Your First Command

Let's start with a simple prompt. Try asking Gemini a question:

gemini prompt "What is the distance between the Earth and the Moon in kilometers?"

This is just the beginning. In the next sections, we will explore file-based prompts, context management, and more advanced features.