Loading...
Loading...
Google Cloud Platform CLI (gcloud, gcloud storage, bq). Use when: managing GCP resources, deploying to Cloud Run/Cloud Functions/GKE/App Engine, working with Cloud Storage, BigQuery, IAM, Compute Engine, Cloud SQL, Pub/Sub, Secret Manager, Artifact Registry, Cloud Build, Cloud Scheduler, Cloud Tasks, Vertex AI, VPC/networking, DNS, logging/monitoring, or any GCP service. Also covers: authentication, project/config management, CI/CD integration, serverless deployments, container registry, docker push to GCP, managing secrets, Workload Identity Federation, and infrastructure automation.
npx skill4agent add marcfargas/skills gcloudgcloudgcloud storagegsutilbqscoop install gcloudGoogleCloudSDKInstaller.exegcloud components install%APPDATA%/gcloud/~/.config/gcloud/$TEMP.secrets//# FIX — disable MSYS path conversion:
export MSYS_NO_PATHCONV=1
# Or per-command:
MSYS_NO_PATHCONV=1 gcloud projects add-iam-policy-binding my-project ...⚠️ Cost: Commands that create resources (instances, clusters, databases) incur GCP charges. Always confirm project and region before creating.
| Level | Gate | Examples |
|---|---|---|
| READ | Proceed autonomously | |
| WRITE | Confirm with user; note cost if billable | |
| DESTRUCTIVE | Always confirm; show what's affected | |
| EXPENSIVE | Confirm + state approximate cost | GKE clusters ( |
| SECURITY | Confirm + explain impact | |
| FORBIDDEN | Refuse; escalate to human | |
--quiet--format=jsongcloud [RELEASE_LEVEL] COMPONENT ENTITY OPERATION [ARGS] [FLAGS]--project--format--filter--limit--quiet--verbosity--async| Service | File | Key Commands |
|---|---|---|
| Auth & Config | auth.md | Login, ADC, impersonation, config profiles |
| IAM & Projects | iam.md | Projects, APIs, service accounts, Secret Manager |
| Compute & Networking | compute.md | VMs, SSH, firewall, VPC, DNS, static IPs |
| Serverless | serverless.md | Cloud Run, Functions, App Engine, Scheduler, Tasks |
| Storage & Artifacts | storage.md | gcloud storage, Artifact Registry |
| Data | data.md | Cloud SQL, BigQuery (bq), Pub/Sub |
| Automation & CI/CD | automation.md | Scripting, output formats, filtering, GitHub Actions, operations |
# 1. Correct project?
gcloud config get-value project
# 2. Default region set?
gcloud config get-value compute/region
# 3. Required API enabled? (most APIs are disabled by default)
gcloud services list --filter="name:run.googleapis.com" --format="value(name)" | grep -q run || \
gcloud services enable run.googleapis.com
# 4. Billing enabled?
gcloud billing projects describe $(gcloud config get-value project) --format="value(billingEnabled)"PERMISSION_DENIED: ... API has not been enabled| Problem | Diagnosis | Fix |
|---|---|---|
| Auth failure | | |
| Permission denied | Check IAM (see iam.md) | Grant correct role |
| API not enabled | Error message says which API | |
| Quota exceeded | | Request increase in Console |
| Wrong project | | |
| Wrong region | | Set correct region; related resources must match |
| Config confusion | | Check active config, override with |
| Slow commands | Large result set | Use |
# Debug mode
gcloud compute instances list --verbosity=debug
# Full environment info
gcloud info| Task | Command |
|---|---|
| Login | |
| Set project | |
| Current project | |
| Enable API | |
| List anything | |
| Describe anything | |
| JSON output | |
| Single value | |
| Filter | |
| Quiet ⚠️ | |
| Help | |