wrangler

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

Updated Aug 2, 2026
One-click install
npx skills add https://github.com/leonardoacosta/agents --skill wrangler-leonardoacosta
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wrangler
Source: https://github.com/leonardoacosta/agents/tree/main/skills/wrangler
Command: npx skills add https://github.com/leonardoacosta/agents --skill wrangler-leonardoacosta

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Wrangler CLI flags, config fields, and subcommands change frequently, so pre-trained knowledge is often outdated. This Skill directs the agent to retrieve current Cloudflare documentation and the local config schema before writing or reviewing Wrangler commands, preventing syntax errors and misconfigured bindings. ## Core Features & Use Cases - Deployment & Development: Covers wrangler dev, wrangler deploy, dry runs, environments, versions, and rollback workflows. - Resource Management: Provides command references for KV, R2, D1, Vectorize, Hyperdrive, Workers AI, Queues, Containers, Workflows, Pipelines, and Secrets Store. - Configuration Guidance: Recommends wrangler.jsonc with correct binding shapes, compatibility dates, remote bindings, and type generation via wrangler types. - Use Case: When asked to deploy a Worker with a D1 database and R2 bucket, the agent first checks the latest docs and config schema, then writes a valid wrangler.jsonc and runs the correct deploy commands. ## Quick Start Ask the agent to create and deploy a new Cloudflare Worker with a D1 database binding 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, main 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 D1 database migrations with Wrangler?

Create a migration with `wrangler d1 migrations create <db> <name>`, then apply it locally with `wrangler d1 migrations apply <db> --local` or to production with `--remote`. List pending migrations using `wrangler d1 migrations list <db>`.

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 validation and autocompletion of binding shapes.

Does wrangler dev use real Cloudflare resources locally?

By default, wrangler dev simulates bindings locally. Set `"remote": true` on specific bindings like R2, Vectorize, or AI in your config to connect to real resources while running the Worker locally.

How do I safely set secrets with Wrangler?

Use `wrangler secret put KEY` for an interactive prompt, or pipe from a file for CI. Never pass secret values as command arguments or echo them. For local development, store secrets in a .dev.vars file.

Why is my Worker binding undefined at runtime?

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