Workers - No config? No problem. Just `wrangler deploy`
Key Points
- Auto-configures projects with wrangler deploy
- Generates wrangler.jsonc and installs adapters
- Dashboard can create PRs with preview deployments
Summary
Wrangler 4.68.0 makes automatic configuration generally available. Running npx wrangler deploy in a project without a Wrangler config will detect your framework from package.json, install required adapters, generate a wrangler.jsonc, and deploy to Cloudflare Workers. The feature was previously experimental and is now the default behavior.
Key Points
- Run
npx wrangler deployto auto-configure and deploy projects without an existing Wrangler config. - Wrangler detects the framework from package.json, prompts to confirm detected settings, installs required adapters, generates
wrangler.jsonc, then deploys. - Use
wrangler setupto create config without deploying, or pass--yesto skip interactive prompts. - When connecting a repository through the Workers dashboard, a pull request with the generated files and a preview deployment is created only if the deploy command is
npx wrangler deploy. Custom deploy commands still auto-configure but do not create a PR. - This automatic configuration is GA and the default in Wrangler 4.68.0.
Quick commands
npx wrangler deploy— auto-configure and deploywrangler setup— configure without deployingnpx wrangler deploy --yes— skip prompts
Notes
If you encounter issues or have questions, consult the project GitHub discussion or Cloudflare support resources.