Prompt Buddy logoPrompt Buddy

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 deployment with Wrangler.

Import to Prompt Buddy

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 deployment with Wrangler.

When To Use

Use when you need to initialize a new Cloudflare Worker project from scratch or from an existing Git repository using the command line.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-get-started-cli-workflow-guide.mdA guide for setting up and deploying a Cloudflare Worker using the Wrangler CLI.Questions about a guide for setting up and deploying a Cloudflare Worker using the Wrangler CLI.
examples/workers-get-started-cli-cloudflare-workers-cli-npm-create-command.textThe npm command used to initialize a new Cloudflare Workers project via the create cloudflare utility.Exact payloads, commands, or snippets shown in The npm command used to initialize a new Cloudflare Workers project via the create cloudflare utility.
examples/workers-get-started-cli-cloudflare-workers-cli-create-project-command.textA command line instruction demonstrating how to use yarn to create a new Cloudflare Workers project.Exact payloads, commands, or snippets shown in A command line instruction demonstrating how to use yarn to create a new Cloudflare Workers project.
examples/workers-get-started-cli-cloudflare-workers-cli-create-project-command-2.textA command line instruction demonstrating how to initialize a new Cloudflare Workers project using the pnpm create cloudflare command.Exact payloads, commands, or snippets shown in A command line instruction demonstrating how to initialize a new Cloudflare Workers project using the pnpm create clo...
examples/workers-get-started-cli-cloudflare-workers-cli-get-started-guide-command.textA sequence of terminal commands for navigating directories and initializing a new Cloudflare Workers project.Exact payloads, commands, or snippets shown in A sequence of terminal commands for navigating directories and initializing a new Cloudflare Workers project.
examples/workers-get-started-cli-cloudflare-workers-cli-npm-create-command-2.textA text example demonstrating the npm create cloudflare command with the template flag for initializing a new project.Exact payloads, commands, or snippets shown in A text example demonstrating the npm create cloudflare command with the template flag for initializing a new project.
examples/workers-get-started-cli-cloudflare-workers-cli-wrangler-dev-command.textA text representation of the npx wrangler dev command used to start a local development server for Cloudflare Workers.Exact payloads, commands, or snippets shown in A text representation of the npx wrangler dev command used to start a local development server for Cloudflare Workers.
examples/workers-get-started-cli-cloudflare-workers-cli-hello-world-script.textA 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-cli-cloudflare-workers-cli-hello-world-worker-script.textA 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-cli-cloudflare-workers-cli-deploy-command.textAn example of the npx wrangler deploy command used to deploy a Cloudflare Worker via the CLI.Exact payloads, commands, or snippets shown in An example of the npx wrangler deploy command used to deploy a Cloudflare Worker via the CLI.

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

  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/get-started/guide