How to Use the Gemini CLI (Step-by-Step Guide)

A guide on how to install and configure the Gemini CLI, including the Figma MCP extension.

Nov 27, 2025 · 1 min read · 109 Words · -Views -Comments · Programming
Gemini Figma MCP 🇨🇳 阅读中文版
Read with AI

Choose an AI assistant

ChatGPT Open in a new tab with the article link and prompt
Claude Copy the prompt, then open Claude

Open Claude
Trouble reading the article?

If the prompt is missing, copy the full prompt below into your AI assistant. If the AI cannot read the article, paste the visible passage you want to discuss and add your question.

Installation

You can install the Gemini CLI using Homebrew:

brew install gemini-cli

Alternatively, you can use npm:

npm install -g @google/gemini-cli

Upgrading

To update to the latest version via Homebrew:

brew upgrade gemini-cli

Login

Once you enter a Gemini session, use the /login command to authenticate. Since Gemini currently offers a free tier (e.g., G3), you can simply use your Google account to log in.

Installing the Figma MCP Extension

You can extend Gemini’s capabilities by installing the official Figma MCP (Model Context Protocol) server:

gemini extensions install https://github.com/figma/figma-gemini-cli-extension

To uninstall the extension:

gemini extensions uninstall figma

Resources

Authors
Developer, digital product enthusiast, tinkerer, sharer, open source lover