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.
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
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/workers-development-testing-multi-developing-with-multiple-workflow-guide.md | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | The 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.text | The 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.text | A 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.text | A 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.text | Terminal 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.text | A 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.text | A 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.text | A 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.text | A 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
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - 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
