hardgcloud

Deploy a Cloud Function and set environment variables for it

command

gcloud functions deploy FUNCTION_NAME --set-env-vars KEY=VALUE

also accepted

gcloud functions deploygcloud functions deploy FUNCTION_NAME --set-env-vars

Command breakdown

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

gcloudfunctionsdeployFUNCTION_NAME--set-env-varsKEY=VALUE
FlagPurpose
--set-env-varsBoolean flag

Test your recall — not just your reading.

Practice with interactive quiz →