gcloud alpha|beta tasks batch-create creates tasks from a file
Introduced 2026-09-29 · score 0.94
HOW TO USE IT
When you need to create multiple Cloud Tasks from a JSON or YAML file, run `gcloud alpha tasks batch-create` with the target queue and input file.
gcloud alpha tasks batch-create --queue=<queue> --tasks-from-file=<tasks.yaml>WHY THIS HELPS
Create multiple Cloud Tasks from a JSON or YAML file in one batch operation.
REQUIREMENTS AND LIMITATIONS
- Availability: alpha, beta
- --queue (required): Queue the tasks belong to.
- --tasks-from-file (required): Path to a JSON or YAML file listing tasks, or `-` to read from stdin.
- --dry-run: Validate task specifications without creating tasks.
- --failed-tasks-file: Path for writing a JSON record of failed tasks.
- --location: Location to manage the queue or task; defaults to the current project's App Engine app location, if associated.
- Prerequisite: The command is alpha; the docs say it may change without notice.
- The input file is JSON or YAML.
FIRST-PARTY EVIDENCE
- https://docs.cloud.google.com/sdk/docs/release-notes#58700_2026-09-29
- https://docs.cloud.google.com/sdk/gcloud/reference/alpha/tasks/batch-create
Check the installed version and the source before using it. Entry JSON