Google Cloud CLI

From Chorke Wiki
Jump to navigation Jump to search
sudo apt update
sudo apt install apt-transport-https ca-certificates gnupg curl

# register apt-get repository
curl -fsSL https://packages.cloud.google.com/apt/doc/apt-key.gpg \
| sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg

cat << EOF | sudo tee /etc/apt/sources.list.d/google-cloud-sdk.list >/dev/null
deb [arch=$(dpkg --print-architecture) \
signed-by=/usr/share/keyrings/cloud.google.gpg] \
https://packages.cloud.google.com/apt cloud-sdk main
EOF

sudo apt update
sudo apt install google-cloud-cli

Playground

gcloud --help
gcloud cheat-sheet
gcloud config list
ls -lah ~/.config/gcloud/
cat ~/.config/gcloud/active_config

References