Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gcloud not recognized as an internal or external command on Windows

Tags:

I am installing Google App Engine under Windows (not using Cygwin). After running the bat script, I closed and reopened the cmd.exe and entered inside the google-cloud-sdk directory. When I ran the command gcloud auth login, I'm getting the error:

'gcloud' is not recognized as an internal or external command, operable program or batch file. 
like image 521
Mohammed Basheer Avatar asked May 02 '14 17:05

Mohammed Basheer


People also ask

How do you check gcloud is installed or not?

The first thing to do after successful installation is open your command line and type “gcloud” to check whether Cloud SDK has installed perfectly. Run “gcloud init”, it opens up a new browser window and asks to login into your google cloud account.


1 Answers

Me too had the same issue that

'gcloud is not recognized as an internal or external command' .

For windows 7 user goto: MyComputer->Right Click - Properties -> Advanced System Settings - advanced - Environment Variables.

First have to set path extension.

This can be done by:

Under System variables in Environment variables choose PATHEXT->Edit -> Add ' ;.PY'.....PY for Python Support

Second change the environment variable:

Under System variables in Environment variables choose PATH->Edit-> ADD "C:\Program Files\Google\Cloud SDK\google-cloud-sdk\bin " and click OK.

Now restart the command shell and check with the following command :

'gcloud -h' 

Sure it will work.

like image 180
Ranjith Gopalakrishan Avatar answered Sep 30 '22 18:09

Ranjith Gopalakrishan