← Auth251 / 640
hardgcloud

Authenticate gcloud using a credential configuration file

command

gcloud auth login --cred-file CREDENTIAL_FILE

also accepted

gcloud auth login --cred-file

Command breakdown

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

gcloudauthlogin--cred-fileCREDENTIAL_FILE
FlagPurpose
--cred-fileBoolean flag

Test your recall — not just your reading.

Practice with interactive quiz →