How To Use Gemini Cli
📖 Bu rehber ToolPazar ekibi tarafından hazırlanmıştır. Tüm araçlarımız ücretsiz ve reklamsızdır.
What it is
Gemini CLI is Google’s answer to terminal-first AI tools like Claude Code and Codex CLI. You install it once, sign in with a personal Google account, and get access to Gemini 2.5 Pro with a generous free tier of requests per day and minute. It reads files, runs shell commands, edits code, and can pull in web search and the full 1M-token context window for questions that span a whole repo or long documents.
Install
Run `gemini` in any project directory. The REPL opens, reads a GEMINI.md file if present, and waits for a task.
First session
Free-tier rate limits are per-minute and per-day, so long tool-heavy tasks can stall. If you hit the ceiling, switch to an API key or drop to Gemini 2.5 Flash for the cheap iterations. The CLI respects a .gitignore-style pattern file to keep sensitive paths out of context.
Everyday workflows
Context compaction runs automatically on long sessions, but you can force it with /compress. Drop a GEMINI.md at the project root with conventions, test commands, and taboo files — it is loaded on every session and is the easiest way to get consistent output.
Gotchas and tips
Developers who want a free, open-source terminal agent with a very large context window, and who are fine living inside Google’s model family. Start on a read-only task to get a feel for the tool-use loop before letting it edit files.