cloudflare · Cloudflare Workers Docs
Workers CLI
A step-by-step guide to initializing a Cloudflare Worker project using the C3 CLI, configuring project files, and preparing for development and deployment.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
Workers CLI
A step-by-step guide to initializing a Cloudflare Worker project using the C3 CLI, configuring project files, and preparing for development and deployment.
When To Use
Use when you need to initialize a new Cloudflare Worker project from scratch or from an existing Git repository using the C3 command-line tool.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/workers-get-started-index-cli-workflow-guide.md | A guide for setting up and deploying a first Cloudflare Worker using the Wrangler CLI. | Questions about a guide for setting up and deploying a first Cloudflare Worker using the Wrangler CLI. |
examples/workers-get-started-index-cli-cloudflare-workers-cli-npm-create-command.text | A command line instruction demonstrating how to initialize a new Cloudflare Worker project using the npm create cloudflare command. | Exact payloads, commands, or snippets shown in A command line instruction demonstrating how to initialize a new Cloudflare Worker project using the npm create cloud... |
examples/workers-get-started-index-cli-cloudflare-workers-cli-create-worker-comma.text | A command line instruction demonstrating how to use yarn to create a new Cloudflare Worker project. | Exact payloads, commands, or snippets shown in A command line instruction demonstrating how to use yarn to create a new Cloudflare Worker project. |
examples/workers-get-started-index-cli-cloudflare-workers-cli-create-project-comm.text | A command line example demonstrating how to use the cloudflare create command to initialize a new worker project. | Exact payloads, commands, or snippets shown in A command line example demonstrating how to use the cloudflare create command to initialize a new worker project. |
examples/workers-get-started-index-cli-cloudflare-workers-cli-get-started-shell-c.text | A sequence of shell commands for navigating to a worker directory and initiating the setup process. | Exact payloads, commands, or snippets shown in A sequence of shell commands for navigating to a worker directory and initiating the setup process. |
examples/workers-get-started-index-cli-cloudflare-workers-cli-npm-create-command-2.text | An example of the npm create cloudflare command used to initialize a new project with a template. | Exact payloads, commands, or snippets shown in An example of the npm create cloudflare command used to initialize a new project with a template. |
examples/workers-get-started-index-cli-cloudflare-workers-cli-wrangler-dev-comman.text | A text example demonstrating the use of the npx wrangler dev command to start a local development server for Cloudflare Workers. | Exact payloads, commands, or snippets shown in A text example demonstrating the use of the npx wrangler dev command to start a local development server for Cloudfla... |
examples/workers-get-started-index-cli-cloudflare-workers-cli-hello-world-worker-.text | A basic JavaScript worker script that returns a 'Hello World!' response to an incoming fetch request. | Exact payloads, commands, or snippets shown in A basic JavaScript worker script that returns a 'Hello World!' response to an incoming fetch request. |
examples/workers-get-started-index-cli-cloudflare-workers-cli-hello-world-worker--2.text | A basic JavaScript worker script that returns a 'Hello Worker!' response to an incoming fetch request. | Exact payloads, commands, or snippets shown in A basic JavaScript worker script that returns a 'Hello Worker!' response to an incoming fetch request. |
examples/workers-get-started-index-cli-cloudflare-workers-cli-deploy-command.text | An example of the npx wrangler deploy command used to deploy a Cloudflare Worker. | Exact payloads, commands, or snippets shown in An example of the npx wrangler deploy command used to deploy a Cloudflare Worker. |
What This Skill Covers
- Set up and deploy your first Worker with Wrangler, the Cloudflare Developer Platform CLI.
- Main sections:
Prerequisites,1\. Create a new Worker project,2\. Develop with Wrangler CLI,3\. Write code,4\. Deploy your project.
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/get-started/guide/index.md
