Gcloud command not found - installing Google Cloud SDK

I am trying to install the Google Cloud SDK on Mac using the following command in terminal

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

It worked fine, but when I go to the next step

gcloud init

I get the following

- bash: gcloud: command not found

I tried all the solutions on the same issue as here , however I still get the same error message. The installer did not request me with the following message:Modify profile to update your $PATH and enable bash completion? (Y/n)?

+4
source share
2 answers

, Cloud SDK . - , , .

/Users/<yourname>/.profile :

# The next line updates PATH for the Google Cloud SDK.
source '<path-to-where-you-installed-the-cloud-sdk>/path.bash.inc'

PATH:

export $PATH=<path-to-where-you-installed-the-cloud-sdk>:$PATH
+3

sdk "-" . $PATH .

0

Source: https://habr.com/ru/post/1663976/


All Articles