Difference between revisions of "Gcloud"

From wikieduonline
Jump to navigation Jump to search
Line 5: Line 5:
 
* Linux:
 
* Linux:
 
  <code>[[sudo apt-get install]] [[apt-transport-https]] [[ca-certificates]] [[gnupg]]</code>
 
  <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>
+
  <code>[[curl]] https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo [[apt-key --keyring]] /usr/share/keyrings/cloud.google.gpg add -</code>
 
  <code>[[sudo apt-get update]] && sudo apt-get install google-cloud-sdk</code>
 
  <code>[[sudo apt-get update]] && sudo apt-get install google-cloud-sdk</code>
  

Revision as of 19:02, 11 October 2021

Installation

sudo apt-get install apt-transport-https ca-certificates gnupg
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -
sudo apt-get update && sudo apt-get install google-cloud-sdk
gcloud init
gcloud compute instances create
gcloud config list
gcloud auth list
gcloud compute images list
gcloud compute instances create VM_NAME \
   [--image=IMAGE | --image-family=IMAGE_FAMILY] \
   --image-project=IMAGE_PROJECT
   --machine-type=MACHINE_TYPE
gcloud projects get-iam-policy
gcloud source repos create
gcloud -q source repos delete

See also

Advertising: