gemini command not available after install on Windows 11
Windows 11 Installed latest Node.js as advised Ran the "npx https://github.com/google-gemini/gemini-cli" command from Powershell as Admin Gemini ran, selected Dracula as interface config Selected Google as my authentication - opened new tab, and logged in with my google account typed /quit in the console, console remained and 'optmized' install once complete, typed in /quit, and returned to Powershell
advised of an npm update, applied that.
exited my Powershell session
Opened new Powershell session, CD'd to git repo for my code
06/25/2025 15:39:26: C:\Users\mr_yo\Powershell> gemini gemini: The term 'gemini' is not recognized as a name of a cmdlet, function, script file, or executable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
06/25/2025 15:45:51: C:\Users\mr_yo\Powershell> gemini-cli gemini-cli: The term 'gemini-cli' is not recognized as a name of a cmdlet, function, script file, or executable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. 06/25/2025 15:45:56: C:\Users\mr_yo\Powershell>
Expected gemini-cli to start
What extra steps do I need to perform on Windows 11 to get Gemini to execute?
Have checked the Troubleshooting FAQ etc. no pointers.
please advise
Hi, npx adds a package temporarily, which means it doesn't persist across sessions. It executes a package without installing it permanently, which is why you didn't see the gemini command after reopening Powershell. That's expected behavior.
In order to install it permanently, run npm install -g @google/gemini-cli. Hope this helps!
Thanks, it does - apologies was not clear in the docs (and am not a node person) - will repeat the install 'properly'
Thank you, npm install -g @google/gemini-cli installed very quickly and it appears to have taken the config already entered when I used the npx command.
Closing the ticket with thanks
Windows 11 run npm install -g @google/gemini-cli
still error 'gemini' is not recognized as an internal or external command,
Found possible duplicate issues:\n\n- #2884: (0.9111702389222542)\n\n