GCP Login Service Account May 13, 2021 Here’s the command to authenticate as a service account. gcloud auth activate-service-account --key-file=key.jsongcloud auth activate-service-account --key-file=key.json To log out. gcloud auth revokegcloud auth revoke