How-To
Step-by-step guides with video, screenshots and code. Set up your tools, connect integrations, fix errors and ship faster. Search or filter by category, then follow each guide one step at a time.
New guides in your inbox
Fresh step-by-step how-to guides as we publish them. One email a week, no more.
How to Install the Gemini CLI and Run Your First Prompt
Install Google's open-source Gemini CLI with npm, sign in, and run an interactive coding prompt from your terminal.
How to Give Gemini CLI Project Context with a GEMINI.md File
Create a GEMINI.md memory file so the Gemini CLI knows your project conventions on every run.
How to Fix a Bug in Your Codebase with the Gemini CLI
Use the Gemini CLI agent to locate, diagnose, and patch a real bug, then review the diff before accepting.
How to Run the Gemini CLI Non-Interactively in Scripts
Pass a prompt with the -p flag and pipe input so the Gemini CLI works inside shell pipelines and CI.
How to Connect an MCP Server to the Gemini CLI
Register a Model Context Protocol server in your Gemini CLI settings to give the agent new tools.
How to Fix Common Gemini CLI Authentication Errors
Diagnose and resolve the most frequent sign-in, API key, and quota errors in the Gemini CLI.