wrangler

Deploy and manage Cloudflare Workers, KV, R2, D1, and other bindings using Wrangler CLI commands.

Updated Mar 25, 2026
One-click install
npx skills add https://github.com/lettucebo/Skills --skill wrangler-lettucebo
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: wrangler
Source: https://github.com/lettucebo/Skills/tree/main/skills/cloudflare/wrangler
Command: npx skills add https://github.com/lettucebo/Skills --skill wrangler-lettucebo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires wrangler.

What problem does it solve? Wrangler CLI flags, config fields, and subcommands change frequently, so relying on pre-trained knowledge leads to outdated commands and invalid configurations when deploying or managing Cloudflare Workers and their bindings. ## Core Features & Use Cases - Deployment & Local Development: Run wrangler dev with local or remote bindings, deploy with environments, dry runs, and version rollbacks. - Resource Management: Create and manage KV namespaces, R2 buckets, D1 databases, Vectorize indexes, Hyperdrive configs, Queues, Containers, Workflows, Pipelines, and Secrets Store. - Configuration & Types: Author wrangler.jsonc configs with bindings and generate TypeScript types via wrangler types. - Use Case: You need to deploy a Worker with a D1 database and R2 bucket. The skill retrieves the latest Wrangler docs, writes a correct wrangler.jsonc with bindings, runs migrations, and deploys with a dry-run validation first. ## Quick Start Ask the AI to create a new Cloudflare Worker with a D1 database binding and deploy it using Wrangler.

Frequently Asked Questions about wrangler

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

FAQPage Schema
How do I deploy a Cloudflare Worker with Wrangler?▼

Run `wrangler deploy` after configuring `wrangler.jsonc` with your Worker name, entry point, and compatibility date. Use `wrangler deploy --dry-run` to validate first, and `wrangler deploy --env staging` to target a specific environment.

How do I run Cloudflare Workers locally with Wrangler?▼

Run `wrangler dev` to start a local dev server with simulated bindings. Set `remote: true` on specific bindings in your config to connect to real resources like Workers AI or Vectorize while running locally.

Should I use wrangler.jsonc or wrangler.toml for configuration?▼

Prefer `wrangler.jsonc` because newer Wrangler features are JSON-only. Add the `$schema` field pointing to `node_modules/wrangler/config-schema.json` for autocompletion and validation.

How do I manage secrets in Cloudflare Workers securely?▼

Use `wrangler secret put API_KEY` with the interactive prompt, or pipe from a file for CI. Never pass secret values as command arguments or commit them to config; use `.dev.vars` for local development secrets.

Why is my binding undefined inside my Worker?▼

The binding name in your code must exactly match the `binding` field in `wrangler.jsonc`. After changing config, run `wrangler types` to regenerate TypeScript definitions and verify the binding exists.

How do I run D1 database migrations with Wrangler?▼

Create migrations with `wrangler d1 migrations create <db> <name>`, then apply them with `wrangler d1 migrations apply <db> --local` for development or `--remote` for production.