npx wrangler deploy --outdir dist

Category: Cloudflare

npx wrangler deploy --outdir dist

Write the deploy bundle into a directory

Saves the bundled output to dist/ instead of only uploading it, so you can inspect or commit the exact artifact that shipped. Useful with --minify to review the minified code. The directory is written before the deploy step runs.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.