User Tools

Site Tools


gcp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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]
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 =====
 <code> <code>
 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 <wanted-config>
  
 gcloud config set project <prj-id> gcloud config set project <prj-id>
 +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
 </code> </code>
  
  
gcp.txt ยท Last modified: 2021/03/04 11:13 by jdx