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 Get a Gemini API Key from Google AI Studio
Create a free Gemini API key in Google AI Studio and store it safely as an environment variable.
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 Call the Gemini API from Python
Install the google-genai SDK and generate text from Gemini in a few lines of Python.
How to Stream Gemini Responses in Node.js
Use the JavaScript SDK to stream a Gemini answer token by token instead of waiting for the full reply.
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 Set Up Gemini Code Assist in VS Code
Install the Gemini Code Assist extension, sign in, and get inline completions and chat inside VS Code.
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 Choose the Right Gemini Model for Coding Tasks
Compare Gemini Flash and Pro models and pick the right one for speed, cost, or hard reasoning.
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.
How to Summarize a YouTube Video with Gemini
Paste a YouTube link into Gemini and get a structured summary, key timestamps, and the exact quotes you care about.
How to Create Your First NotebookLM Notebook
Set up a NotebookLM notebook, add your sources, and start asking grounded questions that cite the exact passages they came from.
How to Generate an Audio Overview Podcast in NotebookLM
Turn your sources into a two-host audio summary you can listen to, then steer the conversation toward what you care about.
How to Analyze a Video File with the Gemini API
Upload an MP4 to the Gemini API with the File API and ask the model to describe scenes, find moments, and pull timestamps.
How to Feed a Long Document into Gemini's Long Context
Use Gemini's large context window to analyze a whole book or a stack of PDFs in one prompt instead of chunking it.
How to Analyze PDFs and Docs in the Gemini Chat App
Upload PDFs, spreadsheets, and Google Docs into the Gemini web app and ask questions, compare them, and extract tables.
How to Generate a Short Video with Veo in Gemini
Use the Veo video model inside the Gemini app to turn a text prompt into a short clip, then refine it.
How to Share a NotebookLM Notebook with Your Team
Invite collaborators to a NotebookLM notebook, set viewer or editor access, and control whether they can change sources.
How to Cache Long Context in the Gemini API to Cut Costs
Set up explicit context caching so repeated questions about the same large document cost a fraction of the price.
How to Fix a NotebookLM Source That Will Not Load
Diagnose why a PDF, URL, or YouTube link fails to import into NotebookLM and apply the right workaround.
How to Extract Data from Images and Screenshots with Gemini
Hand Gemini a photo of a receipt, whiteboard, or table and get clean structured data back as JSON or a spreadsheet.
How to Ground Gemini Answers in Your Own Documents
Attach your files to a Gemini chat so answers cite your material instead of generic knowledge.
How to Use Gemini Inside Google Docs to Draft Faster
Turn on Gemini in Google Docs and use the Help me write panel to draft and refine sections without leaving the document.