gcloud command not found - while installing Google Cloud SDK

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

    I know this question has been answered, but here are my two cent. After installing gcloud, you need to restart the shell before you able to gcloud command.

    How you do this, mostly depends on the file you keep your shell configuration. Most files are .bashrc_profile, .bashrc, .zshrc.

    You can now restart with

    source ~/.bashrc_profile

    You can replace the file to the file you have.

    Or if you don't care the file you have, on Mac or linux you can restart the shell .

    exec -l $SHELL

提交回复
热议问题