Dry-run a deploy to inspect the bundle
deploy & domains
// what it does
Runs the full esbuild bundle and prints the binding and size summary but uploads nothing. Adding --outdir writes the final bundled Worker to disk so you can inspect exactly what would ship. Handy in CI to catch build or binding errors before a real deploy.
// shell
$ wrangler deploy --dry-run --outdir dist// gotcha
A dry run never calls the Cloudflare API, so it won't confirm that referenced KV namespaces, R2 buckets, or D1 databases actually exist — it only validates the local build.