gcloud メモ (チートシート)
gcloud cheet-sheet
gcloud-python3 % ./google-cloud-sdk/bin/gcloud cheat-sheet
▪ gcloud iam service-accounts set-iam-policy: Replace existing IAM
policy binding.
▪ gcloud iam service-accounts keys list: List a service account's keys.
Docker & Google Kubernetes Engine (GKE)
Manage containerized applications on Kubernetes
▪ gcloud auth configure-docker: Register the gcloud tool as a Docker
credential helper.
▪ gcloud container clusters create: Create a cluster to run GKE
containers.
▪ gcloud container clusters list: List clusters for running GKE
containers.
▪ gcloud container clusters get-credentials: Update kubeconfig to get
kubectl to use a GKE cluster.
▪ gcloud container images list-tags: List tag and digest metadata for a
container image.
Virtual Machines & Compute Engine
Create, run, and manage VMs on Google infrastructure
▪ gcloud compute zones list: List Compute Engine zones.
▪ gcloud compute instances describe: Display a VM instance's details.
▪ gcloud compute instances list: List all VM instances in a project.
▪ gcloud compute disks snapshot: Create snapshot of persistent disks.
▪ gcloud compute snapshots describe: Display a snapshot's details.
▪ gcloud compute snapshots delete: Delete a snapshot.
▪ gcloud compute ssh: Connect to a VM instance by using SSH.
Serverless & App Engine
Build highly scalable applications on a fully managed serverless platform
▪ gcloud app deploy: Deploy your app's code and configuration to the
App Engine server.
▪ gcloud app versions list: List all versions of all services deployed
to the App Engine server.
▪ gcloud app browse: Open the current app in a web browser.
▪ gcloud app create: Create an App Engine app within your current
project.
▪ gcloud app logs read: Display the latest App Engine app logs.
Miscellaneous
Commands that might come in handy
▪ gcloud kms decrypt: Decrypt ciphertext (to a plaintext file) using a
Cloud Key Management Service (Cloud KMS) key.
▪ gcloud logging logs list: List your project's logs.
▪ gcloud sql backups describe: Display info about a Cloud SQL instance
backup.
▪ gcloud sql export sql: Export data from a Cloud SQL instance to a SQL
file.
EXAMPLES
To view this cheat sheet, run:
$ gcloud cheat-sheetGCLOUD WIDE FLAGS
These flags are available to all commands: --access-token-file, --account,
--billing-project, --configuration, --flags-file, --flatten, --format,
--help, --impersonate-service-account, --log-http, --project, --quiet,
--trace-token, --user-output-enabled, --verbosity.
Run $ gcloud help for details.
コメント
コメントを投稿