wrangler

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

Updated May 5, 2026
One-click install
npx skills add https://github.com/Rocktown-Labs/reluxury --skill wrangler-rocktown-labs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wrangler
Source: https://github.com/Rocktown-Labs/reluxury/tree/main/.agents/skills/wrangler
Command: npx skills add https://github.com/Rocktown-Labs/reluxury --skill wrangler-rocktown-labs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Cloudflare Wrangler CLI syntax, flags, and configuration fields change frequently, and outdated knowledge leads to failed deployments, misconfigured bindings, and broken local development setups. This Skill ensures correct, current Wrangler usage by prioritizing retrieval from official Cloudflare docs and the local config schema over stale pre-trained knowledge. ## Core Features & Use Cases - Deployment & Development: Run wrangler dev for local development with remote bindings, deploy with wrangler deploy, and roll back versions when needed. - Resource Management: Create and manage KV namespaces, R2 buckets, D1 databases, Vectorize indexes, Hyperdrive configs, Queues, Workflows, Pipelines, Containers, and Secrets Store entries. - Configuration & Types: Write wrangler.jsonc configs with proper 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 guides you to create the resources, bind them in wrangler.jsonc, run migrations, generate types, and deploy with a dry-run validation first. ## Quick Start Ask the AI to help you create a wrangler.jsonc config with a D1 database binding and deploy your Worker to a staging environment.

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 set up D1 database migrations with Wrangler?

Create migrations with wrangler d1 migrations create, then apply them locally using wrangler d1 migrations apply my-database --local or to production with --remote. Configure the migrations_dir field in your d1_databases binding in wrangler.jsonc.

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

Use 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 of config fields and binding shapes.

How do I use real Cloudflare resources during local development?

Set remote: true on specific bindings in wrangler.jsonc to connect to real resources while running wrangler dev locally. Workers AI, Vectorize, and Browser Rendering are recommended remote bindings since AI always runs remotely.

Why does my Worker binding show as 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 verify the binding names align.

How do I safely manage secrets with Wrangler?

Use wrangler secret put for an interactive prompt, pipe from a file, or use wrangler secret bulk with a JSON file. Never pass secret values as command arguments, echo them, or commit .dev.vars or secrets files to version control.