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.
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.
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.
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.
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
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 alsobrew install gemini-cli. No global install:npx @google/gemini-cli. -
2
Sign in from a git repo
cdinto a real project, confirmgit statusworks, then rungemini. 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 useGEMINI_API_KEYfrom AI Studio. -
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
Accept with git diff
git diff -- README.mdshowing that line is the first successful run. Use/stats modelfor the official usage snapshot. Do not guess how far a free tier will go.
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 modelor 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.