Table of Contents
Gemini CLI is Google’s terminal-based coding assistant. On June 18, 2026, Google moved free individual, Google AI Pro, and Google AI Ultra access from Gemini CLI to Antigravity CLI. Enterprise Gemini Code Assist and API-key authentication were unaffected by that change, according to the Gemini CLI project announcement. Choose your route before installing.

Install Gemini CLI for a supported account or API key
The install guide calls for Node.js 20 or newer. Use a supported Node.js release and check your terminal sees both Node and npm. See the Node.js and npm basics if you are setting them up for the first time.
node --version
npm --version
npm install -g @google/gemini-cli
gemini --version
gemini --help
The npm package for the CLI is @google/gemini-cli. Launch gemini from a small project folder and follow the authentication instructions for your organization or API key. Check your project’s billing and limits before using an API key. Keep keys out of chat prompts and source control.


Use Antigravity CLI for a personal Google login
Follow Google’s current Antigravity CLI installation and sign-in steps, then launch it with agy. On first launch, it can detect older Gemini CLI settings and offer to migrate them. Review the listed extensions and connectors before choosing what to carry over. The older Gemini CLI sign-in below shows the pre-transition workflow.


Test on a small task before allowing edits
Ask the assistant to explain a function in one file and list any assumptions without changing files. Next, try asking it to suggest a test for a failing input. Read the proposed commands before approving them, and review the diff and run tests after allowing changes. For bulk file renaming, request a preview of old and new names and check for collisions before executing anything. See a similar review-and-test workflow for terminal coding tools.


Reader Comments 0
Sign in with email or Google to join the discussion.