Member-only story

GCP — Useful Commands

Maciej
3 min readAug 12, 2021

--

The gcloud interactive shell provides a richer bash experience, simplifying command and documentation discovery with as-you-type autocompletion and help text snippets.

Core

Set default zone for compute engine

gcloud config set compute/zone us-east-1a

Enable compute engine API

gcloud services enable compute

Failed to negotiate an api version (error message)

gcloud auth application-default login

List all the deployments deployed on Google Cloud Deployment Manager

gcloud deployment-manager deployments list

Give details abount the components, libraries, system details and the log directory.

gcloud info …

Computing Services

A/B testing

gcloud app services set-traffic [APP_NAME] splits 1=.5,2=.5 split-by cookie

Move all traffic

gcloud app services set-traffic [APP_NAME] splits 2=1 — migrate

--

--

Maciej
Maciej

Written by Maciej

DevOps Consultant. I’m strongly focused on automation, security, and reliability.

No responses yet