Prerequisites
Before you begin, ensure you have:- Windows 10 or Windows 11 (the installer uses winget, which requires recent Windows versions)
- Internet connection (required for downloading Node.js and Gemini CLI)
- App Installer from Microsoft Store (required for winget command support)
If you don’t have winget available, you’ll need to install “App Installer” from the Microsoft Store before proceeding.
Installation Steps
Download the Installer
Navigate to the GitHub Releases page and download the latest
.zip file.The file will be named something like gemini-cli-easy-installer-[version].zip.Extract the ZIP File
- Locate the downloaded
.zipfile in your Downloads folder - Right-click on the file
- Select “Extract All…” from the context menu
- Choose a destination folder and click Extract
Make sure to fully extract the file before running. Do not run the batch file directly from inside the ZIP archive.
Run the Installer
Double-click the extracted
.bat file to launch the installer.The installer will automatically:- Check if Node.js is installed on your PC
- Install or update Node.js LTS if needed
- Install or update the Gemini CLI to the latest version
- Create a desktop shortcut for easy access
Complete Node.js Installation (if needed)
If Node.js was not previously installed, the batch file will install it using winget. After installation completes:
- The installer will pause and display an important message
- Close the current window
- Run the
.batfile again to continue the setup
This restart is required because Node.js needs to be recognized by the system. The second run will complete the Gemini CLI installation.
Launch Gemini CLI
After successful installation:
- Press any key when prompted
- A new PowerShell window will automatically open with Gemini CLI running
- Follow the on-screen prompts to complete initial configuration:
- Select Theme: Press Enter to use the default theme
- Select Auth Method: Choose “Login with Google” and press Enter
- A browser window will open for Google account authentication
- Sign in with your Google account to complete setup
What Gets Installed
The installer performs the following operations:Node.js Setup
- Checks for existing Node.js installation
- Installs Node.js LTS if not present
- Updates to the latest LTS version if already installed
- Uses
winget install OpenJS.NodeJS.LTSfor installation
Gemini CLI Installation
- Installs the official
@google/gemini-clipackage globally via npm - Automatically updates to the latest version if already installed
- Verifies successful installation by checking for the
geminicommand
Desktop Shortcut Creation
- Creates a shortcut named “Gemini CLI.lnk” on your desktop
- The shortcut launches PowerShell with the Gemini CLI automatically loaded
- Working directory is set to your user profile folder
Using Gemini CLI After Installation
Once setup is complete, you can launch Gemini CLI in two ways:- Desktop Shortcut: Double-click the “Gemini CLI” shortcut on your desktop
- Command Line: Open PowerShell or Command Prompt and type
gemini
The desktop shortcut provides the most convenient way to access Gemini CLI, as it automatically configures the PowerShell environment.
Troubleshooting
Installation Fails
If the Gemini CLI installation fails, check the following:- Network Connection: Ensure you have a stable internet connection
- Run as Administrator: Right-click the
.batfile and select “Run as administrator” - Clear npm Cache: Open Command Prompt as administrator and run:
Then run the installer again
winget Command Not Found
If you see an error about winget not being available:- Install “App Installer” from the Microsoft Store
- Make sure you’re running Windows 10 (version 1809 or later) or Windows 11
- Restart your computer after installing App Installer
Gemini Command Not Recognized
If thegemini command is not recognized after installation:
- Close and reopen your terminal window
- Verify Node.js is in your PATH by running
node -v - Check if Gemini CLI is installed:
npm list -g @google/gemini-cli - Try running the installer again as administrator
Next Steps
After completing the installation, you can:- Start chatting with Gemini directly from your terminal
- Explore Gemini CLI commands and features
- Configure additional settings and preferences
The first time you launch Gemini CLI, you’ll need to authenticate with your Google account. This is a one-time setup process.