What do you want to do?
3 use cases
-
Ask Gemini to explain a codebase from the terminal
Run Gemini CLI in a repo and ask it about architecture, with extra directories included.
View prompt
In this repo, run google-gemini/gemini-cli with my GEMINI_API_KEY from the environment and ask it to explain the architecture, the entry points and the riskiest module. Paste its answer in a file ARCHITECTURE_NOTES.md.
-
Run Gemini headless in scripts and CI with JSON output
Use non-interactive mode with JSON or streaming JSON so other tools can read the result.
- REPO
google-gemini/gemini-cli - Gemini CLI
- Software and DevOps
- Intermediate
View prompt
Write a shell script that runs google-gemini/gemini-cli headless with -p and --output-format json to <task> on this repo, parses the JSON with jq, and fails the CI step if <condition>.
- REPO
-
Use Gemini CLI through your company's Vertex AI project
Point the CLI at Google Cloud so usage bills to your organization's project.
- REPO
google-gemini/gemini-cli - Gemini CLI
- Software and DevOps
- Intermediate
View prompt
Configure google-gemini/gemini-cli to use Vertex AI in project <id> with GOOGLE_GENAI_USE_VERTEXAI=true, run one prompt, and tell me where usage will show up in the console.
- REPO
Quick start with Gemini CLI
- Check you have what it needs: Node.js (npm), Homebrew, MacPorts or conda; A Gemini API key from AI Studio or a Google Cloud project for Vertex AI.
- Open google-gemini/gemini-cli on GitHub and read the README and license.
- Try it without installing:
npx @google/gemini-cli, or install withnpm install -g @google/gemini-cliorbrew install gemini-cli - Set your key:
export GEMINI_API_KEY="YOUR_API_KEY" - In the repo run
gemini, and add sibling folders withgemini --include-directories ../lib,../docs - Ask it to explain the architecture or summarize recent changes
These steps come from our top use case, Ask Gemini to explain a codebase from the terminal, which also has a copy-paste agent prompt.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for google-gemini/gemini-cli
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeGemini CLI alternatives · Best AI repos for Software and DevOps
About this repo
- Who it is forDevelopers with a Gemini API key or Google Cloud project who want a scriptable terminal agent.
- Why it is hot108k stars, talked about in 2 AI sources we track
- LanguageTypeScript
- Sourcegithub.com/google-gemini/gemini-cli · Back to Hot repos
Requirements
- Node.js (npm), Homebrew, MacPorts or conda
- A Gemini API key from AI Studio or a Google Cloud project for Vertex AI
Add this badge to your README
Maintain Gemini CLI? Show readers where to find these use cases.
Markdown
[](https://dedupedai.com/use-cases/google-gemini-gemini-cli/?utm_source=github&utm_medium=badge&utm_campaign=google-gemini-gemini-cli)
HTML
<a href="https://dedupedai.com/use-cases/google-gemini-gemini-cli/?utm_source=github&utm_medium=badge&utm_campaign=google-gemini-gemini-cli"><img src="https://dedupedai.com/badge/google-gemini/gemini-cli.svg" alt="Use cases on Deduped" height="20"></a>
A static image, no tracking script. About the badge
Questions about Gemini CLI
What is Gemini CLI?
Gemini CLI is Google's open-source AI agent for the terminal. It reads your codebase, runs commands and answers prompts with Gemini models, and can run headless with JSON or streaming JSON output for scripts and CI. The README notes that unpaid tier and Google One users were moved to Antigravity CLI on June 18, 2026 and that Gemini CLI is not optimized for the newest Gemini models, so it now fits API key and Vertex AI users best. It is an open-source project on GitHub: https://github.com/google-gemini/gemini-cli.
How do I use Gemini CLI?
Try it without installing: npx @google/gemini-cli, or install with npm install -g @google/gemini-cli or brew install gemini-cli; then set your key: export GEMINI_API_KEY="YOUR_API_KEY"; in the repo run gemini, and add sibling folders with gemini --include-directories ../lib,../docs. The use cases on this page give the full steps and a copy-paste agent prompt for each job.
Who is Gemini CLI for?
Developers with a Gemini API key or Google Cloud project who want a scriptable terminal agent.
What can I do with Gemini CLI?
3 use cases so far, for example: Ask Gemini to explain a codebase from the terminal; Run Gemini headless in scripts and CI with JSON output; Use Gemini CLI through your company's Vertex AI project. Each has steps and a copy-paste agent prompt.
What do I need to run Gemini CLI?
Node.js (npm), Homebrew, MacPorts or conda; A Gemini API key from AI Studio or a Google Cloud project for Vertex AI.
What are alternatives to Gemini CLI?
Other hot AI repos in Software and DevOps: Deep Infer, Harness2, Orca, Opencode, Graphify.
Is Gemini CLI safe to run?
Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.