Skip to content

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:

The City of Greater Sudbury is located on the Traditional Territory of Atikameksheng Anishnawbek and Wahnapitae First Nation who are signatories to the Robinson Huron Treaty of 1850.

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)