gcloud command not found - while installing Google Cloud SDK

后端 未结 28 1207
忘掉有多难
忘掉有多难 2020-12-07 13:43

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         


        
28条回答
  •  南笙
    南笙 (楼主)
    2020-12-07 14:15

    Post installation instructions are not clear:

    ==> Source [/.../google-cloud-sdk/completion.bash.inc] in your profile to enable shell command completion for gcloud.
    ==> Source [/.../google-cloud-sdk/path.bash.inc] in your profile to add the Google Cloud SDK command line tools to your $PATH.
    

    I had to actually add the following lines of code in my .bash_profile for gcloud to work:

    source '/.../google-cloud-sdk/completion.bash.inc'
    source '/.../google-cloud-sdk/path.bash.inc'
    

提交回复
热议问题