Gcloud command not found - while installing Google Cloud SDK

I am on a mac and am trying to install the Google Cloud SDK (including the gcloud command line utility) using this command in terminal

curl https://sdk.cloud.google.com | bash

as seen at https://cloud.google.com/sdk/

It got all the way to the end and finished but even after I restarted my shell, the gcloud command still says it's not found.

Why isn't this installation working? what if gcloud command not found ?

Answered by Camellia Kleiber

If your installation is unsuccessful due to the find command not being recognized, ensure your PATH environment variable is set to include the folder containing find . Usually, this is C:WINDOWSsystem32; . If you have just uninstalled Cloud SDK, you will need to reboot your system before installing Cloud SDK again.

I believe that there was an issue while downloading the Google Cloud SDK, in that case, I will be explaining starting from the installation process.

  • 1.First, download the official Google Cloud SDK archive file from here(https://cloud.google.com/sdk/docs/quickstart-macos).
  • 2. Unzip the archive and save it at your desired folder.
  • 3. Now open the folder which contains your unzipped google-cloud-sdkfolder in the terminal.
  • 4. Run the command ./google-cloud-sdk/install.sh and give yes to all further prompts and you are done.

Now, just type gcloud -v to verify your installation. If you find your gcloud version in your terminal, then you have successfully installed google cloud SDK.

Now the command gcloud will be available globally anywhere in your terminal!

For more information on google cloud certification, you can read GCP certification.

Your Answer


Parent Categories