Setting Up Google Cloud Project CLI (SDK)

Follow this guide to use GCP command line locally

Prerequisites:

  • Pyhon 3

  • iTerm2 with powerline 10k ;)

Hint: when you have the GCP SDK & Powerline 10K installed with a default project, as soon as you type gcloud, your default project will appear so you always know where you are in GCP project space

Download and extract the sdk install from the link below:

SDK Download link and full install instructions

Follow the default instructions/values and make sure that the default project is set to pihole-vpn and the default zone is set to us-east1-b

To SSH into an instance you can run the following (provided the defaults were set up correctly above, or if they have not changed):

gcloud compute ssh $INSTANCE_NAME

More SSH instructions

Last updated

Was this helpful?