Tired of manually logging in to gcloud for your scripts? Stop using personal accounts and switch to Service Accounts for your automation.
gcloud auth activate-service-account --key-file=[KEY_FILE] gcloud auth activate service account
: The unique email address of your service account (e.g., my-sa@my-project.iam.gserviceaccount.com ). Tired of manually logging in to gcloud for your scripts
gcloud auth list
The primary purpose of this command is to provide gcloud with a service account key file (usually a .json file) to prove its identity. gcloud auth activate service account