Prompt Buddy logoPrompt Buddy

cloudflare · Cloudflare Workers Docs

Development Testing Developing with multiple Workers

Explains how to run multiple Cloudflare Workers locally using either a single development command with multiple configuration files or separate development commands for each Worker.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Development Testing Developing with multiple Workers

Explains how to run multiple Cloudflare Workers locally using either a single development command with multiple configuration files or separate development commands for each Worker.

When To Use

Use when you need to simulate a multi-service architecture locally, manage service bindings between Workers, or configure auxiliary Workers via Vite or Wrangler.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-development-testing-multi-developing-with-multiple-workflow-guide.mdA guide explaining different approaches and commands for running multiple Cloudflare Workers locally during development.Questions about a guide explaining different approaches and commands for running multiple Cloudflare Workers locally during development.
examples/workers-development-testing-multi-developing-with-multiple-cloudflare-wo.textA command line instruction using npx wrangler dev to run multiple workers simultaneously by specifying multiple configuration files.Exact payloads, commands, or snippets shown in A command line instruction using npx wrangler dev to run multiple workers simultaneously by specifying multiple confi...
examples/workers-development-testing-multi-developing-with-multiple-cloudflare-wo-2.textA wrangler dev command demonstrating how to run multiple workers simultaneously by specifying multiple configuration files.Exact payloads, commands, or snippets shown in A wrangler dev command demonstrating how to run multiple workers simultaneously by specifying multiple configuration...
examples/workers-development-testing-multi-developing-with-multiple-cloudflare-wo-3.textA pnpm wrangler dev command used to run multiple workers simultaneously by specifying multiple configuration files.Exact payloads, commands, or snippets shown in A pnpm wrangler dev command used to run multiple workers simultaneously by specifying multiple configuration files.
examples/workers-development-testing-multi-developing-with-multiple-cloudflare-wo-4.textA vite configuration file demonstrating how to use the cloudflare plugin to manage multiple workers with auxiliary worker configurations.Exact payloads, commands, or snippets shown in A vite configuration file demonstrating how to use the cloudflare plugin to manage multiple workers with auxiliary wo...
examples/workers-development-testing-multi-developing-with-multiple-cloudflare-wo-5.textThe terminal command used to run the Vite development server for testing multiple Cloudflare Workers simultaneously.Exact payloads, commands, or snippets shown in The terminal command used to run the Vite development server for testing multiple Cloudflare Workers simultaneously.
examples/workers-development-testing-multi-developing-with-multiple-cloudflare-wo-6.textThe terminal command used to run the Vite development server for testing multiple Cloudflare Workers simultaneously.Exact payloads, commands, or snippets shown in The terminal command used to run the Vite development server for testing multiple Cloudflare Workers simultaneously.
examples/workers-development-testing-multi-developing-with-multiple-cloudflare-wo-7.textA text snippet demonstrating the pnpm vite dev command used for developing with multiple Cloudflare Workers.Exact payloads, commands, or snippets shown in A text snippet demonstrating the pnpm vite dev command used for developing with multiple Cloudflare Workers.
examples/workers-development-testing-multi-developing-with-multiple-cloudflare-wo-8.textA terminal command demonstrating how to run wrangler dev with a specific configuration file for a multi-worker development setup.Exact payloads, commands, or snippets shown in A terminal command demonstrating how to run wrangler dev with a specific configuration file for a multi-worker develo...
examples/workers-development-testing-multi-developing-with-multiple-cloudflare-wo-9.textTerminal commands for running multiple Cloudflare Workers simultaneously using wrangler dev with specific configuration files.Exact payloads, commands, or snippets shown in Terminal commands for running multiple Cloudflare Workers simultaneously using wrangler dev with specific configurati...
examples/workers-development-testing-multi-developing-with-multiple-cloudflare-wo-10.textA terminal command demonstrating how to run wrangler dev with a specific configuration file for a worker application.Exact payloads, commands, or snippets shown in A terminal command demonstrating how to run wrangler dev with a specific configuration file for a worker application.
examples/workers-development-testing-multi-developing-with-multiple-cloudflare-wo-11.textA terminal command demonstrating how to run a specific worker using a custom wrangler configuration file.Exact payloads, commands, or snippets shown in A terminal command demonstrating how to run a specific worker using a custom wrangler configuration file.
examples/workers-development-testing-multi-developing-with-multiple-cloudflare-wo-12.textA terminal command demonstrating how to run wrangler dev with a specific configuration file for a second worker.Exact payloads, commands, or snippets shown in A terminal command demonstrating how to run wrangler dev with a specific configuration file for a second worker.
examples/workers-development-testing-multi-developing-with-multiple-cloudflare-wo-13.textA terminal command demonstrating how to run a specific worker using a custom wrangler configuration file.Exact payloads, commands, or snippets shown in A terminal command demonstrating how to run a specific worker using a custom wrangler configuration file.

What This Skill Covers

  • When building complex applications, you may want to run multiple Workers during development. This guide covers the different approaches for running multiple...
  • Main sections: Single dev command, Multiple dev commands.

Workflow

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://developers.cloudflare.com/workers/development-testing/multi-workers/index.md