hardgcloud

Generate a P12 format service account key for legacy authentication libraries

command

gcloud iam service-accounts keys create KEY_FILE --iam-account SA_EMAIL --key-file-type p12

also accepted

gcloud iam service-accounts keys creategcloud iam service-accounts keys create KEY_FILE --key-file-type p12

Command breakdown

Part of the Google Cloud CLI (gcloud) — IAM & Service Accounts category.

gcloudiamservice-accountskeyscreateKEY_FILE--iam-accountSA_EMAIL--key-file-typep12
FlagPurpose
--iam-accountBoolean flag
--key-file-typeBoolean flag

Test your recall — not just your reading.

Practice with interactive quiz →