← Auth248 / 640
hardgcloud

Activate a service account by specifying both email and key file path

command

gcloud auth activate-service-account SA_EMAIL --key-file KEY_FILE

also accepted

gcloud auth activate-service-account

Command breakdown

Part of the Google Cloud CLI (gcloud) — Auth category.

gcloudauthactivate-service-accountSA_EMAIL--key-fileKEY_FILE
FlagPurpose
--key-fileBoolean flag

Test your recall — not just your reading.

Practice with interactive quiz →