gcloud command not found - while installing Google Cloud SDK

后端 未结 28 1199
忘掉有多难
忘掉有多难 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:18

    I'm running zsh and found this gist very helpful: https://gist.github.com/dwchiang/10849350

    Edit the ~/.zshrc file to include these two lines:

    # The next line updates PATH for the Google Cloud SDK.
    source /Users/YOUR_USERNAME/google-cloud-sdk/path.zsh.inc
    
    # The next line enables zsh completion for gcloud.
    source /Users/YOUR_USERNAME/google-cloud-sdk/completion.zsh.inc
    

    This assumes you installed the package in your main directory from the official docs

提交回复
热议问题