This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
gcp [2021/03/04 11:01] jdx [Initialize : connect project and show cloud storage list] |
gcp [2021/03/04 11:13] (current) jdx [Initialize : connect project and show cloud storage list] |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== GCP commands ====== | ====== GCP commands ====== | ||
- | ===== Initialize : connect project and show cloud storage list ===== | + | ===== GCP commands CheatSheet |
< | < | ||
gcloud init | gcloud init | ||
Line 7: | Line 7: | ||
gcloud auth list | gcloud auth list | ||
gcloud auth login | gcloud auth login | ||
- | |||
gcloud auth application-default list # used by Terraform | gcloud auth application-default list # used by Terraform | ||
+ | |||
+ | gcloud config configurations list | ||
+ | gcloud config configurations activate < | ||
gcloud config set project < | gcloud config set project < | ||
+ | gcloud projects list | ||
+ | gcloud config get-value project | ||
+ | |||
+ | # connect to gcr | ||
gcloud auth configure-docker | gcloud auth configure-docker | ||
+ | # list storages | ||
gsutil ls | gsutil ls | ||
+ | # list compute instances | ||
+ | gcloud compute addresses list | ||
+ | |||
+ | # list available services | ||
+ | gcloud services list --available | ||
</ | </ | ||