Difference between revisions of "Gcloud"
Jump to navigation
Jump to search
Line 4: | Line 4: | ||
* MacOS: <code>[[brew install --cask google-cloud-sdk]]</code> | * MacOS: <code>[[brew install --cask google-cloud-sdk]]</code> | ||
* Linux: | * Linux: | ||
− | <code>[[sudo apt-get install]] [[apt-transport-https]] [[ca-certificates]] [[gnupg]] [[sudo]]</code> | + | <code>[[sudo apt-get install -y]] [[apt-transport-https]] [[ca-certificates]] [[gnupg]] [[sudo]]</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> | <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> | ||
<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 10:41, 8 December 2023
Installation
- MacOS:
brew install --cask google-cloud-sdk
- Linux:
sudo apt-get install -y apt-transport-https ca-certificates gnupg sudo
curl -s 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
Examples
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 composer environments create
gcloud container clusters list gcloud container clusters create
Related
- Google Cloud SDK
gcloud --help
anthoscli
gsutil
gcloud beta
2>&1
to redirect stderr output to stdout
Activities
See also
gcloud beta [ monitoring | container ]
gcloud
[config | scheduler | auth | asset | services | gcloud auth login | iam | sql | projects | container
|compute | kms
|source
],gcloud composer environments create
|build
|gcloud config set project
,gcloud source repos create
,gcloud composer environments create
,gcloud version
,gcloud --help
Advertising: