cloudflare · Cloudflare Workers Docs
Workers Start from scratch
A guide for initializing and deploying a legacy Workers Sites project using a starter repository, npm, and Wrangler.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
Workers Start from scratch
A guide for initializing and deploying a legacy Workers Sites project using a starter repository, npm, and Wrangler.
When To Use
Use when you need to manually set up a legacy Workers Sites project from a template and deploy it to Cloudflare using Wrangler.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/workers-configuration-sites-start-from-scratch-workflow-guide.md | A guide explaining how to set up Cloudflare Workers Sites from scratch and recommending the transition to Workers Static Assets. | Questions about a guide explaining how to set up Cloudflare Workers Sites from scratch and recommending the transition to Workers Sta... |
examples/workers-configuration-sites-start-from-scratch-cloudflare-workers-sites-.text | A shell command to clone the Cloudflare Worker Sites template repository using a specific branch. | Exact payloads, commands, or snippets shown in A shell command to clone the Cloudflare Worker Sites template repository using a specific branch. |
examples/workers-configuration-sites-start-from-scratch-cloudflare-workers-wrangl.text | A text guide demonstrating how to initialize and run a Cloudflare Workers project from scratch using the wrangler dev command. | Exact payloads, commands, or snippets shown in A text guide demonstrating how to initialize and run a Cloudflare Workers project from scratch using the wrangler dev... |
examples/workers-configuration-sites-start-from-scratch-cloudflare-workers-start-.text | The terminal command used to deploy a Cloudflare Worker from scratch using the Wrangler CLI. | Exact payloads, commands, or snippets shown in The terminal command used to deploy a Cloudflare Worker from scratch using the Wrangler CLI. |
examples/workers-configuration-sites-start-from-scratch-cloudflare-workers-sites--2.text | A wrangler.toml configuration file for setting up a Cloudflare Workers Sites project from scratch. | Exact payloads, commands, or snippets shown in A wrangler.toml configuration file for setting up a Cloudflare Workers Sites project from scratch. |
examples/workers-configuration-sites-start-from-scratch-cloudflare-workers-sites--3.text | A wrangler.toml configuration file defining a site name and schema reference for a Cloudflare Workers Sites project. | Exact payloads, commands, or snippets shown in A wrangler.toml configuration file defining a site name and schema reference for a Cloudflare Workers Sites project. |
examples/workers-configuration-sites-start-from-scratch-cloudflare-workers-sites--4.text | A wrangler.toml configuration file template for setting up a Cloudflare Workers Sites project from scratch. | Exact payloads, commands, or snippets shown in A wrangler.toml configuration file template for setting up a Cloudflare Workers Sites project from scratch. |
examples/workers-configuration-sites-start-from-scratch-cloudflare-workers-sites--5.text | A wrangler.toml configuration file template demonstrating the compatibility date and basic setup for starting a Cloudflare Workers Sites project from scratch. | Exact payloads, commands, or snippets shown in A wrangler.toml configuration file template demonstrating the compatibility date and basic setup for starting a Cloud... |
examples/workers-configuration-sites-start-from-scratch-cloudflare-workers-sites--6.text | A wrangler.toml configuration file defining routes and site settings for a Cloudflare Workers Sites project. | Exact payloads, commands, or snippets shown in A wrangler.toml configuration file defining routes and site settings for a Cloudflare Workers Sites project. |
examples/workers-configuration-sites-start-from-scratch-cloudflare-workers-sites--7.text | A text configuration snippet defining the route pattern for a Cloudflare Workers Sites deployment. | Exact payloads, commands, or snippets shown in A text configuration snippet defining the route pattern for a Cloudflare Workers Sites deployment. |
What This Skill Covers
- You should use Workers Static Assets to host full-stack applications instead of Workers Sites. It has been deprecated in Wrangler v4, and the Cloudflare Vite...
- Main sections:
Getting started,Project layout,Customize the wrangler.jsonc file:.
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/configuration/sites/start-from-scratch
