-
Notifications
You must be signed in to change notification settings - Fork 0
Installation & Setup
Getting started with Gemma CLI is designed to be straightforward. Follow these steps to set up your workstation on Windows.
Before installing, ensure your system meets the following requirements:
- Operating System: Windows 10 or Windows 11.
-
PowerShell:
- Minimum: PowerShell 5.1
- Recommended: PowerShell 7.4+ (Core). Version 7 provides significantly better ANSI color rendering, faster job management, and modern terminal features.
- API Key: You need a free API key from Google AI Studio. This key grants you access to the Gemma 3 and Gemini models.
This method makes it easy to update the workstation with a single command later.
- Open your terminal and run:
git clone https://github.com/SpdrByte/GemmaCLI.git cd GemmaCLI
If you don't have Git installed, you can download the project directly from GitHub.
- Go to the Gemma CLI Repository.
- Click the green "<> Code" button and select "Download ZIP".
- Extract the ZIP: Right-click the downloaded file and select "Extract All...".
- Open PowerShell, navigate to the extracted folder:
cd "C:\Path\To\Your\Extracted\GemmaCLI-main"
Run the main script to start the interactive session:
.\GemmaCLI.ps1On your first launch, the CLI will detect that no API key is saved.
- Enter your API key when prompted (input is masked for privacy).
- Confirm the key by pasting it a second time.
- The CLI will then encrypt the key using Windows DPAPI (Data Protection API).
🔒 Security Note: Your key is NEVER stored in plain text. It is encrypted specifically for your Windows user account. It cannot be read by other users on the same machine or decrypted if the file is moved to a different computer.
Windows often blocks scripts downloaded from the internet. If the script fails to run after extracting the ZIP, run this in PowerShell inside the folder:
Get-ChildItem -Recurse | Unblock-FileIf you receive an error saying scripts are disabled on your system, run this command in an Administrator PowerShell window:
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser-
Git Users: Run
git pull. -
ZIP Users: Download the latest ZIP from GitHub and replace your old files (keep your
config/folder if you want to save custom commands).
Next Step: Once you are set up, head over to the Model Selection Guide to choose the right reasoning engine for your task.