Editing Gcloud
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 2: | Line 2: | ||
== Installation == | == Installation == | ||
− | * MacOS: <code>[[brew install | + | * MacOS: <code>[[brew cask install]] google-cloud-sdk</code> |
− | * | + | * Linux: |
− | <code>[[sudo apt-get install | + | <code>[[sudo apt-get install]] [[apt-transport-https]] [[ca-certificates]] [[gnupg]]</code> |
− | + | <code>[[curl]] https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo [[apt-key --keyring]] /usr/share/keyrings/cloud.google.gpg add -</code> | |
− | curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo [[ | + | <code>[[sudo apt-get update]] && sudo apt-get install google-cloud-sdk</code> |
− | |||
− | <code>[[sudo apt-get update]] && sudo | ||
== Examples == | == Examples == | ||
Line 14: | Line 12: | ||
[[gcloud]] compute instances create | [[gcloud]] compute instances create | ||
[[gcloud config list]] | [[gcloud config list]] | ||
− | + | [[gcloud auth]] | |
+ | [[gcloud auth list]] | ||
[[gcloud compute images list]] | [[gcloud compute images list]] | ||
[[gcloud compute instances create]] VM_NAME \ | [[gcloud compute instances create]] VM_NAME \ | ||
Line 20: | Line 19: | ||
--image-project=IMAGE_PROJECT | --image-project=IMAGE_PROJECT | ||
--machine-type=MACHINE_TYPE | --machine-type=MACHINE_TYPE | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
* <code>[[gcloud projects get-iam-policy]]</code> | * <code>[[gcloud projects get-iam-policy]]</code> | ||
+ | [[gcloud source]] repos create | ||
+ | gcloud -q source repos delete | ||
<code>[[gcloud builds submit]]</code> | <code>[[gcloud builds submit]]</code> | ||
<code>[[gcloud composer environments create]]</code> | <code>[[gcloud composer environments create]]</code> | ||
− | |||
− | |||
− | |||
== Related == | == Related == | ||
* [[Google Cloud SDK]] | * [[Google Cloud SDK]] | ||
* <code>[[gcloud --help]]</code> | * <code>[[gcloud --help]]</code> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== See also == | == See also == | ||
− | |||
* {{gcloud}} | * {{gcloud}} | ||
+ | * {{GCP}} | ||
+ | * {{Cloud CLIs}} | ||
+ | |||
[[Category:Google Cloud]] | [[Category:Google Cloud]] |
Advertising: