How to use gcloud in Mac

Gcloud in Mac

  • We need to follow the guide and download the SDK from this web page

google gcloud download link

  • Extract the file and run the script for installing

  • Try to type "gcloud" in the terminal for testing

  • But maybe some problems occur, which may caused by the $PATH$ setting. Try to source the file.

# if using original bash, run the 2 following command
source '[path-to-my-home]/google-cloud-sdk/path.bash.inc'
# The next line enables bash completion for gcloud.
source '[path-to-my-home]/google-cloud-sdk/completion.bash.inc'

# if using zsh
source '[path-to-my-home]/google-cloud-sdk/path.zsh.inc'
source '[path-to-my-home]/google-cloud-sdk/completion.zsh.inc'

  • Now we can follow the tutorial to use gcloud idk

  • We can add these two lines in ~/.bash_profile or ~/.zshrc

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

推薦閱讀更多精彩內(nèi)容