Most used Google Cloud commands by Data Engineer
We need to have hands-on with command line tool as a backend engineer
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.