Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 1.03 KB

gcp-install.md

File metadata and controls

30 lines (24 loc) · 1.03 KB

#Installing cloud sdk on Debian-based distro

Add the Cloud SDK distribution URI as a package source

echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] http://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list

Import the Google Cloud Platform public key

curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -

Update the package list and install the Cloud SDK

sudo apt-get update && sudo apt-get install google-cloud-sdk

#Initialize cloud sdk gcloud init ... To continue, you must log in. Would you like to log in (Y/n)? Enter 'Y' Pick cloud project to use: [1] [my-project-1] [2] [my-project-2] ... Please enter your numeric choice:enter project number

Which compute zone would you like to use as project default? [1] [asia-east1-a] [2] [asia-east1-b] ... [14] Do not use default zone Please enter your numeric choice:enter compute region

#list config properties gcloud config list