Choose your path
- Full Tutorial (CLI + Voice)
- Quick Preview (browser)
This path gives you a voice-first experience. You will install Gemini CLI, add the Google Workspace extension, and optionally set up Wispr Flow so you can speak your prompts. This takes about 20 minutes and teaches CLI skills you will use in every tutorial after this one.Node.js is a free tool that lets you run Gemini CLI on your computer.
Gemini CLI is Google’s free AI assistant. It runs in your terminal and helps you with tasks based on your descriptions.Open your terminal and type:Wait for the installation to finish. Then start it by typing:The first time you run it, Gemini CLI will ask you to sign in:
Type
1
Install Node.js
Already have Node.js? If you installed it for a previous tutorial, skip this step. Run
node --version in your terminal to check — you should see a version number like v22.x.x.- Windows
- macOS
- Go to nodejs.org
- Click the big green LTS button to download the installer
- Open the downloaded
.msifile - Click Next through all the screens — the default settings are fine
- Click Install, then Finish
How do I know it worked?
How do I know it worked?
Open your terminal and type:You should see a version number like
v22.x.x. If you see an error, try closing and reopening your terminal, then run the command again.2
Install Gemini CLI
Already have Gemini CLI? If you installed it for a previous tutorial, skip this step. Just run
gemini in your terminal to check it still works.- Choose “Sign in with Google”
- A browser window will open — sign in with your Google account
- Come back to the terminal when it says you’re connected
Free tier: 60 requests per minute, 1,000 requests per day — more than enough for this tutorial and everyday use.
'npm' is not recognised
'npm' is not recognised
This means Node.js isn’t installed correctly. Go back and reinstall Node.js. After reinstalling, close your terminal completely and open a new one before trying again.
Permission denied error
Permission denied error
Windows: Close PowerShell and reopen it by right-clicking and choosing “Run as Administrator”. Then try the install command again.macOS: Add Enter your computer password when prompted (you won’t see characters as you type — that’s normal).
sudo before the command:/quit to exit Gemini CLI for now. We will start it again after installing the Gmail extension.3
Install the Google Workspace extension
Open your terminal and run this command:This downloads and installs the Google Workspace extension, which gives Gemini CLI the ability to read your Gmail, Google Calendar, and Google Drive.
Copy this command
What is an extension? Extensions are plugins that add new capabilities to Gemini CLI. The Workspace extension adds tools for reading and managing Google services like Gmail — similar to how you might install an app on your phone.
The command fails or hangs
The command fails or hangs
Make sure you have an internet connection and that Node.js is installed correctly. Try running
node --version first. If that works but the extension install fails, try closing and reopening your terminal, then running the command again.4
Authorise Gmail access
- Start Gemini CLI:
- The first time Gemini CLI loads with the Workspace extension, it will ask you to authorise access to your Google account
- A browser window will open — sign in with the Google account that has the Gmail you want to summarise
- Review the permissions and click Allow
- Return to your terminal — Gemini CLI is now connected to your Gmail
The browser window doesn't open
The browser window doesn't open
Copy the URL shown in your terminal and paste it into your browser manually. Complete the sign-in there, then return to the terminal.
I see a 'This app isn't verified' warning
I see a 'This app isn't verified' warning
This is normal for community-built tools. Click Advanced → Go to [app name] (unsafe) to continue. Google shows this warning for apps that haven’t gone through their official review process.
5
Install Wispr Flow (optional)
This step is optional. Wispr Flow lets you speak instead of type — handy if you prefer talking over typing. Skip this step if you’d rather type your prompts.
- Sign up at wisprflow.ai/r?CHAN115
- Download and install the app for your operating system
- Configure settings — enable these options for the best experience:
- Experimental > Command Mode — Enable advanced voice commands
- Press Enter Command — Automatically press enter when you say “press enter”
- Bulk Import — Import snippets and dictionary items
What is Wispr Flow?
What is Wispr Flow?
Wispr Flow is a voice-to-text tool that lets you dictate instead of type. It works in any application, including your terminal. Instead of typing a long prompt to Gemini CLI, you can just say it out loud. This is especially useful if you find typing slow or tiring.
6
Test the connection
In Gemini CLI, say (with Wispr Flow) or type this prompt:You should see Gemini CLI access your Gmail and return information about your inbox. If it does, everything is working.
Say this or copy this prompt
Gemini says it has no Gmail tools
Gemini says it has no Gmail tools
The extension may not have installed correctly. Try running the install command again:Then exit (
/quit) and restart Gemini CLI. You can check installed extensions with /extensions list.Verify your setup
Node.js installed
Node.js installed
Run
node --version in your terminal. You should see a version number.Gemini CLI installed and signed in
Gemini CLI installed and signed in
Run
gemini in your terminal. It starts up and shows a prompt where you can type.Workspace extension installed
Workspace extension installed
The extension installed without errors. You can verify with
/extensions list inside Gemini CLI.Connection tested
Connection tested
Gemini CLI can tell you about your unread emails when you ask.
All set? Head to Summarise your Gmail to get your first AI-powered email summary.