美文网首页
How to use gcloud in Mac

How to use gcloud in Mac

作者: EatTheRice | 来源:发表于2017-10-26 20:19 被阅读0次

    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

    相关文章

      网友评论

          本文标题:How to use gcloud in Mac

          本文链接:https://www.haomeiwen.com/subject/xtnkpxtx.html