Difference between revisions of "Gcloud"

From wikieduonline
Jump to navigation Jump to search
 
(4 intermediate revisions by the same user not shown)
Line 6: Line 6:
 
  <code>[[sudo apt-get install -y]] [[sudo]] [[curl]]</code>
 
  <code>[[sudo apt-get install -y]] [[sudo]] [[curl]]</code>
 
  <code>[[sudo apt-get install -y]] [[apt-transport-https]] [[ca-certificates]] [[gnupg]]</code>
 
  <code>[[sudo apt-get install -y]] [[apt-transport-https]] [[ca-certificates]] [[gnupg]]</code>
  <code>[[curl -s]] 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 [[gpg --dearmor]] -o [[/usr/share/keyrings/]]cloud.google.gpg
  <code>[[sudo apt-get update]] && sudo [[apt-get install google-cloud-sdk]]</code>
+
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a [[/etc/apt/sources.list.d/google-cloud-sdk.list]]
 +
  <code>[[sudo apt-get update]] && sudo [[apt-get install -y google-cloud-sdk]]</code>
  
 
== Examples ==
 
== Examples ==

Latest revision as of 10:59, 8 December 2023

Installation[edit]

sudo apt-get install -y sudo curl
sudo apt-get install -y apt-transport-https ca-certificates gnupg
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
sudo apt-get update && sudo apt-get install -y google-cloud-sdk

Examples[edit]

gcloud init
gcloud compute instances create
gcloud config list
 gcloud auth list
gcloud auth login
gcloud auth application-default login
gcloud auth activate-service-account
gcloud auth configure-docker
gcloud auth print-access-token
gcloud auth print-identity-token
gcloud auth --help
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
gcloud source
gcloud source repos create
gcloud -q source repos delete
gcloud compute
gcloud iam
gcloud monitoring


gcloud builds submit

gcloud composer environments create

gcloud container clusters list
gcloud container clusters create

Related[edit]

Activities[edit]

See also[edit]

  • https://cloud.google.com/sdk/docs/install#deb
  • Advertising: