hardgcloud

Deploy a second-generation Cloud Function with the specified runtime and region

command

gcloud functions deploy FUNCTION_NAME --gen2 --runtime python311 --trigger-http --region REGION

also accepted

gcloud functions deploygcloud functions deploy FUNCTION_NAME --gen2

Command breakdown

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

gcloudfunctionsdeployFUNCTION_NAME--gen2--runtimepython311--trigger-http--regionREGION
FlagPurpose
--gen2Boolean flag
--runtimeBoolean flag
--trigger-httpBoolean flag
--regionBoolean flag

Test your recall — not just your reading.

Practice with interactive quiz →