Supporting GCP workloads for the past several years and achieving Google Cloud Platform Professional Architect Certification, I thought I’d come up with a list of helpful commands that have proven useful over the years.
# Initialize, authorize, and configure the ‘gcloud’ SDK tool
gcloud init
# View, Update, and/or Install additional components
gcloud components list
gcloud components update
gcloud components install
# Set your GCP project settings
gcloud config set
# List or Create / Set your profile
gcloud config configurations list
gcloud config confiugrations activate <name>
gcloud config configurations create <name>
# Fetch a config value
gcloud config get-value
# Grant authorization or service-account
gcloud auth login
gcloud auth activate-service-account
# Manage projects
gcloud projects describe
gcloud projects add-iam-policy-binding
# Manage IAM
gcloud iam roles create
gcloud iam service-accounts create
gcloud iam service-accounts set-iam-policy
gcloud iam service-accounts add-iam-policy-binding
gcloud iam service-accounts keys list
# Manage Containerized Applications
gcloud auth configure docker
gcloud container clusters create
gcloud container clusters get-credentials
gcloud container images list-tags
# Manage Compute Engine and VMs
gcloud compute instances list
gcloud compute disks snapshot
gcloud compute ssh
gcloud app deploy
gcloud app create
gcloud app browse
….more to come!!