Introduction
Installing Google Gemini CLI on Windows can enhance your productivity by enabling quick interactions with Google's powerful AI models directly from your command line. This article will guide you through the installation process step-by-step.
Prerequisites
Ensure you have Node.js version 20 or higher installed.
Learn How to install node.js in windows
Installation Steps
Step 1: Run the CMD or Command Promt
Execute the following command in your terminal/CMD:
npx https://github.com/google-gemini/gemini-cli
![NPX command in terminal or in command promt]()
Or install it globally with:
npm install -g @google/gemini-cli
gemini
Step 2: Pick a Color Theme
Select your preferred color theme when prompted.
![Pick a color theme]()
Step 3: Authenticate
When prompted, sign in with your personal Google account. This will grant you up to 60 model requests per minute and 1,000 model requests per day using Gemini.
![Authenticate with google]()
I logged in with Google. A new browser tab will open for you to sign in to your Google account and grant access. Once you have successfully logged in, you will see the screen shown in the snapshot below.
![Login with google]()
You are now ready to use the Gemini CLI!
For example, here I’m asking the Gemini CLI, “What is C# Corner?” Let’s see what response we get.
![Reply from GEMINI CLI]()
After we complete the global installation, you can run the Gemini CLI at any time by simply typing "gemini" in the command prompt. This will start the Gemini CLI.
![Run Gemini CLI anytime]()
Conclusion
You have successfully installed Google Gemini CLI on Windows. Now you can seamlessly leverage Gemini's powerful generative AI capabilities directly from your command line, enhancing your development and productivity tasks.
If you require any clarification/suggestions on the article, please leave your questions and thoughts in the comment section below. Follow C# Corner to learn more new and amazing things about AI or to explore more technologies.
Thanks for reading, and I hope you like it.