# Using Homebrew
brew install --cask google-cloud-sdk
# Using APT
echo 'deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main' | \
sudo tee /etc/apt/sources.list.d/google-cloud-sdk.list
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo tee /usr/share/keyrings/cloud.google.gpg
sudo apt update
sudo apt -y install google-cloud-cli
# Using Chocolatey
choco install -y gcloudsdk
gcloud --help
#
gcloud info
#
gcloud config configurations create <org-name>
#
gcloud auth list
#
gcloud config set account <account>
#
gcloud auth login
#
gcloud config set disable_usage_reporting false
#
gcloud config configurations list
#
ls ~/.config/gcloud
#
gcloud config get-value core/account
#
gcloud projects list
#
gcloud projects create <unique-name>
#
gcloud config set project <project-id>
#
gcloud compute regions list
#
gcloud config get-value compute/region
gcloud config get-value compute/zone
#
gcloud config set compute/region us-west1
gcloud config set compute/zone us-west1-a
#
gcloud config configurations list
#
gcloud config configurations rename <current-name> --new-name <new-name>
#
gcloud config configurations activate <new-name>
│ Error: Invalid provider configuration
│
│ Provider "registry.terraform.io/hashicorp/google" requires explicit configuration. Add a provider block to the root module and configure the provider's required arguments as described in the provider
│ documentation.
gcloud auth application-default login
AccessDeniedException: 403 The billing account for the owning project is disabled in state absent
TODO