Created
June 20, 2020 16:17
-
-
Save myugan/8ff4f4e7f19fa45313829f254f1d60b1 to your computer and use it in GitHub Desktop.
Install gcloud on Ubuntu based
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt-get install apt-transport-https ca-certificates gnupg | |
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list | |
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - | |
sudo apt-get update && sudo apt-get install -y google-cloud-sdk | |
gcloud auth login |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment