The command is activate-service-account (with hyphens), not activate service account .
gcloud auth activate-service-account my-sa@project-123.iam.gserviceaccount.com --key-file=/path/to/keyfile.json
Here's the correct gcloud command to activate a service account: gcloud auth activate-service-account [ACCOUNT] --key-file=[KEY_FILE] Examples: Using a JSON key file:
Gcloud Auth Activate Service Account May 2026
The command is activate-service-account (with hyphens), not activate service account .
gcloud auth activate-service-account my-sa@project-123.iam.gserviceaccount.com --key-file=/path/to/keyfile.json gcloud auth activate service account
Here's the correct gcloud command to activate a service account: gcloud auth activate-service-account [ACCOUNT] --key-file=[KEY_FILE] Examples: Using a JSON key file: The command is activate-service-account (with hyphens)