Back


1. How to install GCloud SDK in local shell?

Tutorial https://cloud.google.com/sdk/

Try Mac OS and Unix Interactive installer

1) Enter the following at a command prompt:

curl https://sdk.cloud.google.com | bash

2) Restart your shell:

exec -l $SHELL

3) Run gcloud init to initialize the gcloud environment:

gcloud init

2. How to authorize gcloud?

Go to https://cloud.google.com/ click “Try it free” if you don’t have an account

Register with your email account, e.g. youremail@address.com

Authorize gcloud in your local shell:

gcloud auth login

3. How to create and set a project?

A Project resource is required to use GCP and forms the basis for using GCP services, enabling billing and etc.

Tutorial https://cloud.google.com/sdk/gcloud/reference/projects/

1) Create a new cloud PROJECT_ID at console.developers.google.com

or create a mew cloud project_ID in local shell:

gcloud projects create PROJECT_ID

2) Set a project in local shell:

gcloud config set account youremail@address.com
gcloud config set project PROJECT_ID

4. How to install gcloud alpha interactive in local shell?

Tutorial https://cloudplatform.googleblog.com/2018/03/introducing-GCPs-new-interactive-CLI.html

1) Update SDK components:

gcloud components update

2) Install the gcloud alpha component:

gcloud components install alpha

3) Start gcloud interactive:

gcloud alpha interactive

4) Exit the interative shell by F9 or:

exit