Most used Google Cloud commands by Data Engineer

Indrajeet GourIndrajeet Gour
1 min read

First of all, you guys need to have Google SDK installed so that you can make all kinds of calls to the GCP API or services.

What I find was the most used commands from the command lines are as follows:

1) Create the new configurations

Each time I do not need to switch the user/service account with the project, they have access to, so

gcloud config configurations create CONFIGURATION_NAME

2) Activate that configuration

Once you have all the configurations set for all your regular projects, how you would gonna move/change them, so you need to activate them like this -

gcloud config configurations activate CONFIGURATION_NAME

3) Listing your configurations

Something if you are not using some configurations very frequently you may forget the name of those, so getting the list of all configurations would help you -

gcloud config list

4) Set/Update for configuration

At the time you create new configurations or update the existing ones with new properties, you need to use this

gcloud config set project PROJECT_ID
    OR
gcloud config set account USER_NAME/SERVICE_ACC
    OR
gcloud config set compute/zone ZONE_NAME

Note - I will keep updating this page with my favourite commands in future as well, so keep checking this page. thanks for your read.

0
Subscribe to my newsletter

Read articles from Indrajeet Gour directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Indrajeet Gour
Indrajeet Gour

An developer who wanted to spread the world all the small bit of required information