wrangler deployments commands allow you to view deployment history for Workers using Gradual Rollouts. A deployment represents a specific traffic split configuration across one or more Worker Versions.
Subcommands
wrangler deployments list- Display the 10 most recent deploymentswrangler deployments status- View the current production statewrangler deployments view- Deprecated, redirects to other commands
Deployments are created when you run
wrangler versions deploy or wrangler rollback. Each deployment tracks which versions are receiving traffic and at what percentages.list
Display the 10 most recent deployments of your Worker, showing the history of how traffic has been distributed across versions over time.Options
Name of the Worker. Can also be specified in your configuration file.
Display output as clean JSON format instead of formatted text.
Example
Output
For each deployment, displays:- Created - When the deployment was created (ISO timestamp)
- Author - Email of the user who created the deployment
- Source - How the deployment was created:
Wrangler 🤠- Created via Wrangler CLIDashboard 🖥️- Created via Cloudflare DashboardAPI 📡- Created via Cloudflare APITerraform 🏗️- Created via TerraformRollback- Created viawrangler rollbackUpload,Secret Change,Promotion- Triggered by specific actions
- Message - Optional deployment message (if provided)
- Version(s) - List of versions in the deployment with their traffic percentages
- Traffic percentage
- Version ID
- Created timestamp
- Tag annotation
- Message annotation
Example Output
status
View the current state of your production deployment, showing which versions are currently receiving traffic.Options
Name of the Worker. Can also be specified in your configuration file.
Display output as clean JSON format instead of formatted text.
Example
Output
Displays the current (most recent) deployment with:- Created - When this deployment was created
- Author - Who created this deployment
- Source - How this deployment was created
- Message - Optional deployment message
- Version(s) - Current versions and their traffic distribution
- Traffic percentage
- Version ID
- Created timestamp
- Tag and message annotations
Example Output
Use Cases
Check current traffic split
Check current traffic split
Before deploying a new version, use This helps you understand the baseline before making changes.
status to see your current deployment state:Verify deployment success
Verify deployment success
After running
wrangler versions deploy, confirm the deployment:Monitor rollout progress
Monitor rollout progress
During a gradual rollout, check status between percentage increases:
view
Thedeployments view command has been deprecated and renamed.
Understanding Deployments
Deployment vs. Version
- Version: A snapshot of your Worker code, configuration, and bindings. Created with
wrangler versions upload. - Deployment: A traffic routing configuration that specifies which versions receive what percentage of requests. Created with
wrangler versions deploy.
Deployment Sources
Deployments can be created through multiple sources:| Source | Description | Triggered By |
|---|---|---|
| Wrangler | CLI deployments | wrangler versions deploy |
| Dashboard | Web UI deployments | Cloudflare Dashboard |
| API | Direct API calls | Cloudflare API |
| Terraform | Infrastructure as code | Terraform provider |
| Rollback | Rollback operations | wrangler rollback |
| Upload | Automatic deployment | Some upload operations |
| Secret Change | Secret modifications | Secret updates that trigger deployment |
Deployment Lifecycle
JSON Output Format
When using--json, the output follows this structure:
- Automation and scripting
- Integration with monitoring tools
- Programmatic deployment verification
- Building custom dashboards
Related Commands
wrangler versions deploy- Create a new deploymentwrangler versions list- List available versionswrangler rollback- Rollback to a previous versionwrangler versions view- View version details
Common Workflows
Viewing Deployment History
Debugging Deployment Issues
Monitoring a Gradual Rollout
Best Practices
Use deployment messages
Use deployment messages
Always add meaningful messages to your deployments:This helps track changes when reviewing
deployments list.Check status before and after changes
Check status before and after changes
Verify the current state before deploying:
Use JSON output for automation
Use JSON output for automation
Parse JSON output in scripts for programmatic deployment verification:
Keep deployment history for auditing
Keep deployment history for auditing
The deployment list provides an audit trail. Use it to:
- Track who deployed what and when
- Understand deployment patterns
- Debug issues by correlating deployments with incidents