Google Cloud CLI (gcloud) is the official command-line tool for Google Cloud Platform. It provides access to Compute Engine, Cloud Storage (gsutil/gcloud storage), BigQuery, GKE (Kubernetes), Cloud Run, Cloud Functions, IAM, Pub/Sub, Cloud SQL, and the full GCP service catalog.
For AI agents, the CLI excels with its --format flag supporting json, yaml, csv, table, and value outputs, plus --filter for server-side resource filtering using GCP’s expression syntax. Agents can manage compute resources (gcloud compute), deploy containers to Cloud Run (gcloud run deploy), interact with GKE clusters (gcloud container), query BigQuery datasets (bq query), and manage storage (gcloud storage cp/ls/rm). The gcloud projects and gcloud config commands enable multi-project orchestration.
Authentication offers several paths: interactive browser login (gcloud auth login), service account keys (gcloud auth activate-service-account), Application Default Credentials (ADC), and Workload Identity Federation. The gcloud config configurations system lets agents maintain and switch between named configuration sets with different projects, accounts, and regions.