Gcloud in Mac
- We need to follow the guide and download the SDK from this web page
-
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
网友评论