- NAME
-
- gcloud tasks batch-create - create multiple tasks from a file in a single batch operation
- SYNOPSIS
-
-
gcloud tasks batch-create--queue=QUEUE--tasks-from-file=TASKS_FROM_FILE[--dry-run] [--failed-tasks-file=FAILED_TASKS_FILE] [--location=LOCATION] [GCLOUD_WIDE_FLAG …]
-
- DESCRIPTION
- Create multiple tasks from a file in a single batch operation.
- EXAMPLES
-
To create multiple tasks from a JSON or YAML file:
gcloud tasks batch-create --queue=my-queue --tasks-from-file=tasks.yaml - REQUIRED FLAGS
-
--queue=QUEUE- The queue the tasks belong to.
--tasks-from-file=TASKS_FROM_FILE- Path to a JSON or YAML file containing a list of tasks to create, or - to read from stdin.
- OPTIONAL FLAGS
-
--dry-run- If set to true, validates the task specifications without creating the tasks.
--failed-tasks-file=FAILED_TASKS_FILE- Optional path to a file where a JSON record of failed tasks will be written.
--location=LOCATION- The location where we want to manage the queue or task. If not specified, uses the location of the current project's App Engine app if there is an associated app.
- GCLOUD WIDE FLAGS
-
These flags are available to all commands:
--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 helpfor details. - NOTES
-
These variants are also available:
gcloud alpha tasks batch-creategcloud beta tasks batch-create
gcloud tasks batch-create
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-11-17 UTC.
[null,null,["Last updated 2026-11-17 UTC."],[],[]]