Running the Installer
Navigate to the extracted folder
Open the folder where you extracted the ZIP file. You should see the
.bat file:Execute the batch file
Double-click the
.bat file to run the installer.A Command Prompt window will open and display the installation progress.
Wait for the installation to complete
The installer will automatically:
- Check if Node.js is installed on your system
- Install Node.js LTS if not present, or update it to the latest version
- Install or update the
@google/gemini-clipackage - Create a desktop shortcut named “Gemini CLI.lnk”
The installation process may take 1-2 minutes, especially if Node.js needs to be downloaded and installed.
Running as Administrator
If the installer doesn’t work properly with standard permissions, you may need to run it as administrator.When to Run as Administrator
You should run the installer as administrator if:- The installation fails with permission errors
- Node.js installation through winget is denied
- npm package installation encounters access issues
Installation Process Details
The installer performs three main steps:Step 1: Node.js Check and Installation
The installer first checks if Node.js is installed on your system. If Node.js is not installed:Step 2: Gemini CLI Installation
The installer uses npm to install or update the Gemini CLI package:gemini command is available:
Step 3: Desktop Shortcut Creation
The installer creates a convenient desktop shortcut:- Launch PowerShell with the
geminicommand - Use your user profile directory as the working directory
- Display the PowerShell icon
Post-Installation Steps
After successful installation, the installer will display setup completion information:Launch Gemini CLI
Press any key to continue. The installer will automatically launch Gemini CLI in a new PowerShell window.Alternatively, you can use the desktop shortcut created during installation.
Select theme
On first launch, you’ll be prompted to select a theme. Press Enter to use the default theme, or choose your preferred option.
Using the Desktop Shortcut
After installation, you can launch Gemini CLI at any time by:- Double-clicking the “Gemini CLI” shortcut on your desktop
- This will open PowerShell and automatically run the
geminicommand
The desktop shortcut is configured to keep the PowerShell window open after launching Gemini CLI, so you can start using it immediately.
Troubleshooting
Installation fails with winget error
Installation fails with winget error
If you see an error message about winget not being found:Solution:
- Install or update App Installer from the Microsoft Store
- Restart your computer
- Run the installer again
Gemini CLI installation fails
Gemini CLI installation fails
If the Gemini CLI installation fails, the installer will suggest possible causes:1. Network connection issue
- Check your internet connection
- Verify you can access npm registry
- Run the batch file as administrator
- Open Command Prompt as administrator
- Run:
npm cache clean --force - Run the installer again
Node.js installed but not recognized
Node.js installed but not recognized
If Node.js was just installed and you see this message:Solution:
- Close the current Command Prompt window
- Run the batch file again
- The system will now recognize Node.js
Shortcut creation failed
Shortcut creation failed
If you see:Solution:
- You can still use Gemini CLI by running
geminiin PowerShell or Command Prompt - To manually create the shortcut, you can run the installer as administrator
Installation takes longer than expected
Installation takes longer than expected
If the installation seems stuck:
- Wait patiently, especially during Node.js installation (can take several minutes)
- Check if Windows Defender or antivirus is scanning the downloaded files
- Ensure you have a stable internet connection
- If it exceeds 10 minutes, close the window and try running as administrator
Next Steps
After successfully installing and running Gemini CLI:Quick Start
Learn how to use Gemini CLI for the first time
Authentication
Complete the initial authentication setup