Gemini CLI: chatting never edits the repo

Do not treat Gemini CLI as a chat box: the first win is a write you can git diff.

People run gemini like a chatbot and the working tree never moves. The first win is a write you can git diff, not a paragraph in the terminal. When you need to talk through that diff, create a space on tidemeet.

The search is Gemini CLI first coding task. Official onboarding: install @google/gemini-cli with npm, run gemini, choose Sign in with Google. Make the first task read and edit one file in the repo.

Official install Sign in with Google Edit, then git diff

Do not treat it as a chat box

Gemini CLI reads files, edits files, and runs commands in the terminal. Official Get started covers install, authenticate, configure, and use. The rename, spreadsheet, and unit-test examples all ask permission before a write. A repo summary is not a first success.

01

An explanation never touches the tree

“Explain this repo” only reads. The first success is one write: name the file, name the change, and forbid other edits.

02

Writes wait for Allow once

Official examples for renaming photos, writing a CSV, and adding tests prompt for permission. Choose Allow once, confirm the path, then look at the diff.

03

Quota follows the login

A personal Google account, a Gemini API key, and Vertex AI have different terms. The docs tell you to check the session with /stats model. This page does not invent numbers.

From install to the first write

  1. 1

    Install from official docs

    You need Node.js 20.0.0 or newer. Standard install: npm install -g @google/gemini-cli. On macOS / Linux you can also brew install gemini-cli. No global install: npx @google/gemini-cli.

  2. 2

    Sign in from a git repo

    cd into a real project, confirm git status works, then run gemini. When asked “How would you like to authenticate for this project?” choose 1. Sign in with Google. Company, school, or Workspace accounts may need a Google Cloud project. Headless hosts can use GEMINI_API_KEY from AI Studio.

  3. 3

    Send one task that edits a file

    Do not stop at an explanation. Ask it to add one line at the top of README.md on how to run tests, and not to change other files. Choose Allow once when it asks to write. Non-interactive: the same sentence with gemini -p "…".

  4. 4

    Accept with git diff

    git diff -- README.md showing that line is the first successful run. Use /stats model for the official usage snapshot. Do not guess how far a free tier will go.

1
write counts as a first run
20
minimum Node.js major
git
diff is the check
npm install -g @google/gemini-cli
# brew install gemini-cli
# npx @google/gemini-cli

cd ~/code/your-repo
git status
gemini
# Sign in with Google
# /stats model

# In the session, or:
# gemini -p "Add a one-line comment at the top of README.md describing how to run tests. Do not change other files."
# Allow once when it asks to write

git diff -- README.md

Where a first run stalls

Prompt Disk Success?
Explain this repo No write Not a first run
One-line test note on README Visible in git diff First success
Clone a remote repo and summarize Not your working tree Not this onboarding task
Login method sets the terms
Most personal Google accounts do not need a Cloud project first. Workspace or Gemini Code Assist licenses often need GOOGLE_CLOUD_PROJECT. Treat an AI Studio API key as a password.
No diff? Check the write prompt
If the tree did not change, the session is often still waiting for permission. Official examples always ask before they write.
Do not invent a free quota
Quota and price follow the auth method. Use /stats model or the Gemini CLI Quotas and Pricing page. This article does not invent numbers.

Official reminder: authentication affects quotas, pricing, Terms of Service, and privacy notices. Keep the first task to one file you can diff. Do not start with a whole-repo rewrite.

When the diff needs a conversation

After the agent edits, teams often want one picture of what changed. No extra meeting suite. Open a short space on tidemeet or see how to create a space. Canvas: shared whiteboard. A similar first write: Codex CLI first file edit.

Questions

Does “explain this project” count as a first run?

No. That is a read-only scout. The first success is a write you named, checked with git diff.

Do I have to install an IDE?

No. The official path is gemini in a terminal. A first file edit needs Node 20+, a login, and a git repo.

Google sign-in versus an API key?

On a local machine, Sign in with Google is the recommended start. Headless hosts use GEMINI_API_KEY from AI Studio, or Vertex AI. Terms and quota follow the method; use the official pages.

What does this have to do with a temporary meeting tool?

No product tie. If you only need to talk through a diff, temporary meeting tools says when a short browser space is enough.

Create a free space