User Tools

Site Tools


gcp

GCP commands

GCP commands CheatSheet

gcloud init

gcloud auth list
gcloud auth login
gcloud auth application-default list  # used by Terraform

gcloud config configurations list
gcloud config configurations activate <wanted-config>

gcloud config set project <prj-id>
gcloud projects list
gcloud config get-value project

# connect to gcr
gcloud auth configure-docker

# list storages
gsutil ls

# list compute instances
gcloud compute addresses list

# list available services
gcloud services list --available
gcp.txt · Last modified: 2021/03/04 11:13 by jdx