wrangler

Automate Cloudflare Workers deployment and management tasks via the Wrangler CLI.

2|1|Updated Dec 19, 2022
One-click install
npx skills add https://github.com/nicholasgriffintn/machine-setup --skill wrangler-nicholasgriffintn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wrangler
Source: https://github.com/nicholasgriffintn/machine-setup/tree/main/ai-tooling/skills/wrangler
Command: npx skills add https://github.com/nicholasgriffintn/machine-setup --skill wrangler-nicholasgriffintn

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Wrangler provides a single, cohesive CLI to deploy, develop, and manage Cloudflare Workers and their resources, reducing setup friction and errors.

Core Features & Use Cases

  • Unified CLI for building, previewing, and deploying Workers and bindings across environments.
  • Resource binding management for KV, R2, D1, and other resources via wrangler.jsonc with validation.
  • Local development & testing with a dev server, live reload, and logs to accelerate iteration.
  • Use Case: A team wants to push a new Worker to staging and production with environment-specific bindings and automated checks.

Quick Start

To begin, install Wrangler, initialize a project with wrangler init, then run wrangler dev for local testing and wrangler deploy to publish.

Frequently Asked Questions about wrangler

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy Cloudflare Workers with environment-specific bindings?

Wrangler automates Cloudflare Workers deployment by validating your wrangler.jsonc configuration and pushing the Worker across staging and production environments with specific KV, R2, and D1 resource bindings.

What is the best way to manage local development for Cloudflare Workers?

Managing local development for Cloudflare Workers is done using the Wrangler CLI dev server, which provides live reload and local logs to accelerate iteration and test resource bindings before multi-environment deployment.

Do I need a wrangler.jsonc configuration file to deploy my Worker?

Yes, a valid wrangler.jsonc configuration file is required to deploy your Worker. Wrangler requires this file along with Wrangler v4+ and appropriate Cloudflare account credentials to perform deployments, checks, and resource bindings.

Can I use Wrangler to manage bindings for KV, R2, and D1 resources?

Yes, Wrangler manages resource bindings for KV, R2, and D1 services by providing a unified CLI interface for binding validation and management directly within your wrangler.jsonc configuration across deployment environments.

Why are my Cloudflare Workers not deploying correctly across environments?

Cloudflare Workers deployments may fail due to missing account credentials, an invalid wrangler.jsonc configuration, or using a Wrangler version below v4. Wrangler automates validation checks to prevent these deployment errors and setup friction.