OpenAICloudflare Developer PlatformFeb 25, 2026, 12:00 AM

Workers - No config? No problem. Just `wrangler deploy`

A condensed section focused on the key takeaways first.

Original Post

Quick Digest

Summary

A condensed section focused on the key takeaways first.

openaienmodel: gpt-5-mini-2025-08-07

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 deploy to 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 setup to create config without deploying, or pass --yes to 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 deploy
  • wrangler setup — configure without deploying
  • npx wrangler deploy --yes — skip prompts

Notes

If you encounter issues or have questions, consult the project GitHub discussion or Cloudflare support resources.

Full Translation

Translations

A translation section that keeps the flow of the original article.

openaijamodel: gpt-5-mini-2025-08-07

Workers — 設定ファイルがなくても問題なし。`wrangler deploy` を実行するだけ

設定ファイルなし?問題なし。wrangler deploy を実行するだけ

Cloudflare Workers に既存のプロジェクトを、そのままデプロイできるようになりました。Wrangler の設定ファイルが無くても、wrangler deploy が自動で動作します。

Wrangler 4.68.0 以降では、wrangler deploy を実行すると自動的にプロジェクトを構成し、フレームワークの検出、必要なアダプターのインストール、そして Cloudflare Workers へのデプロイまで行います。

ローカルでの Wrangler の使い方

ターミナルで:

npx wrangler deploy

プロジェクトに設定ファイルが存在しない状態で wrangler deploy を実行すると、Wrangler は以下を行います:

  • package.json からフレームワークを検出します
  • 検出した設定の確認を求めるプロンプトを表示します
  • 必要なアダプターをインストールします
  • wrangler.jsonc 設定ファイルを生成します
  • プロジェクトを Cloudflare Workers にデプロイします

デプロイせずに構成だけ行いたい場合は wrangler setup を使うこともできます。プロンプトをスキップしたい場合は --yes を付けて実行してください。

Cloudflare ダッシュボードを使う場合

Workers ダッシュボード ↗ からリポジトリを接続すると、必要なファイルがすべて含まれたプルリクエストが自動で生成され、マージ前に確認できるプレビュー環境が作成されます。

注記: プルリクエストはデプロイコマンドが npx wrangler deploy の場合にのみ生成されます。カスタムのデプロイコマンドを使用した場合でも自動構成は実行されますが、PR は作成されません。

背景

自動構成は 2025 年 12 月に実験的機能として導入されました。現在は一般提供(GA)され、デフォルトの動作になっています。ご質問や問題がある場合は、GitHub discussion ↗ に参加してください。

参考・リソース

  • wrangler deploywrangler setup に関するCLI操作
  • Workers ダッシュボード ↗
  • GitHub discussion ↗

(Cloudflare のその他リソースやサポートについては公式サイトをご参照ください。)