Create Version (staged)
create_versionUpload a new Worker version without deploying it, leaving live traffic unchanged until referenced by a deployment. Use for staged rollouts.
Instructions
Upload a new Worker version WITHOUT deploying it — live traffic is unchanged until the version is referenced by create_deployment. Use for staged rollouts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | Version tag (workers/tag annotation) | |
| message | No | Version message (workers/message annotation, shown in the dashboard) | |
| modules | Yes | ES modules; the first is the entry point unless main_module says otherwise | |
| bindings | No | Resource bindings for this version | |
| keep_assets | No | Retain the previous version's static assets | |
| main_module | No | Entry-point module name (default: first module) | |
| script_name | Yes | The name of the Worker script | |
| compatibility_date | No | YYYY-MM-DD; defaults to today | |
| compatibility_flags | No |