gcloud dataflow flex-template run JOB_NAME --template-file-gcs-location=TEMPLATE_FILE_GCS_LOCATION [--additional-experiments=[ADDITIONAL_EXPERIMENTS,…]] [--additional-pipeline-options=[ADDITIONAL_PIPELINE_OPTIONS,…]] [--additional-user-labels=[ADDITIONAL_USER_LABELS,…]] [--dataflow-kms-key=DATAFLOW_KMS_KEY] [--disable-public-ips] [--enable-streaming-engine] [--flexrs-goal=FLEXRS_GOAL] [--launcher-machine-type=LAUNCHER_MACHINE_TYPE] [--launcher-vm-timeout-secs=LAUNCHER_VM_TIMEOUT_SECS] [--max-workers=MAX_WORKERS] [--network=NETWORK] [--num-workers=NUM_WORKERS] [--parameters=[PARAMETERS,…]] [--region=REGION_ID] [--service-account-email=SERVICE_ACCOUNT_EMAIL] [--staging-location=STAGING_LOCATION] [--subnetwork=SUBNETWORK] [--temp-location=TEMP_LOCATION] [--worker-machine-type=WORKER_MACHINE_TYPE] [[--[no-]update : --transform-name-mappings=[TRANSFORM_NAME_MAPPINGS,…]]] [--worker-region=WORKER_REGION | --worker-zone=WORKER_ZONE] [GCLOUD_WIDE_FLAG …]
gcloud dataflow flex-template run my-job --template-file-gcs-location=gs://flex-template-path --region=europe-west1 --parameters=input="gs://input",output="gs://output-path" --max-workers=5JOB_NAME--template-file-gcs-location=TEMPLATE_FILE_GCS_LOCATION--additional-experiments=[ADDITIONAL_EXPERIMENTS,…]--additional-pipeline-options=[ADDITIONAL_PIPELINE_OPTIONS,…]--additional-user-labels=[ADDITIONAL_USER_LABELS,…]--dataflow-kms-key=DATAFLOW_KMS_KEY--disable-public-ipsdataflow/disable_public_ips property value for this command
invocation.
--enable-streaming-enginedataflow/enable_streaming_engine property value for this command
invocation.
--flexrs-goal=FLEXRS_GOALFLEXRS_GOAL must
be one of: COST_OPTIMIZED, SPEED_OPTIMIZED.
--launcher-machine-type=LAUNCHER_MACHINE_TYPE--launcher-vm-timeout-secs=LAUNCHER_VM_TIMEOUT_SECS--max-workers=MAX_WORKERS--network=NETWORK--num-workers=NUM_WORKERS--parameters=[PARAMETERS,…]--region=REGION_ID--service-account-email=SERVICE_ACCOUNT_EMAIL--staging-location=STAGING_LOCATION--subnetwork=SUBNETWORK--temp-location=TEMP_LOCATION--worker-machine-type=WORKER_MACHINE_TYPE--[no-]update--update to enable
and --no-update to disable.
--transform-name-mappings=[TRANSFORM_NAME_MAPPINGS,…]--worker-region=WORKER_REGION--worker-zone=WORKER_ZONE--access-token-file,
--account, --billing-project,
--configuration,
--flags-file,
--flatten, --format, --help, --impersonate-service-account,
--log-http,
--project, --quiet, --trace-token, --user-output-enabled,
--verbosity.
Run $ gcloud help for details.
gcloud beta dataflow flex-template run
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-05-27 UTC.