Chapter 2 · Billing & Tooling
The operator toolkit
08 / 38

Three ways to talk to GCP, each for a different job.

The operator's toolkit — imperative commands, a zero-setup shell, and code-level API access.

gcloud CLI

Scriptable ops

The primary imperative CLI — GCP's equivalent of aws/az. One-off commands and automation scripts.

Cloud Shell

Zero setup

Free, pre-authenticated browser shell with gcloud, kubectl, and Terraform already installed.

Client libraries

In application code

Python, Go, Java, Node — embed API calls directly inside a running service.

reparent-project.sh
# Move a project into a folder — reparenting only changes
# which policy-inheritance chain it sits under
gcloud projects move meridian-shipment-staging --folder=234567890123
gcloud resource-manager folders list --organization=847213590482