wrangler

Deploy and manage Cloudflare Workers, KV, R2, D1, and related resources via the Wrangler CLI.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Cloudflare's Wrangler CLI has a large, evolving command surface across Workers, KV, R2, D1, Vectorize, Hyperdrive, Queues, Workflows, and more. This Skill ensures correct command syntax, configuration patterns, and best practices before running wrangler commands, preventing misconfigurations and deployment errors. ## Core Features & Use Cases - Configuration Guidance: Provides wrangler.jsonc templates with bindings for KV, R2, D1, Durable Objects, AI, Vectorize, Hyperdrive, Queues, Workflows, Pipelines, and Secrets Store, plus type generation via wrangler types. - Full Lifecycle Commands: Covers local development (wrangler dev with remote bindings), deployment with environments and rollback, secrets management, and observability via wrangler tail. - Resource Management: Documents CLI commands for creating and managing databases, buckets, namespaces, indexes, containers, and migrations. - Use Case: You need to deploy a Worker with a D1 database and staging/production environments. This Skill provides the exact config bindings, migration commands, and wrangler deploy --env staging workflow. ## Quick Start Ask the AI to load the wrangler skill and help you configure and deploy a Cloudflare Worker with a D1 database binding.

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 from your project directory 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 D1 database migrations with wrangler?▼

Create a migration with wrangler d1 migrations create, then apply it locally using wrangler d1 migrations apply my-database --local or to production with --remote. List pending migrations with wrangler d1 migrations list.

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

Use wrangler.jsonc because newer Wrangler features are JSON-only. The JSON format also supports comments and the $schema field for editor autocompletion via the config-schema.json file.

Does wrangler dev use real Cloudflare resources locally?▼

By default wrangler dev uses local storage simulation for bindings. Set remote: true on specific bindings in your config to connect to real resources, which is required for Workers AI and recommended for Vectorize.

Why is my binding undefined inside my Worker?▼

The binding name in your code must exactly match the binding name in wrangler.jsonc. After changing config, run wrangler types to regenerate TypeScript definitions and wrangler check to validate the configuration.

How do I manage secrets for Cloudflare Workers?▼

Set secrets with wrangler secret put API_KEY or in bulk with wrangler secret bulk secrets.json. For local development, place secrets in a .dev.vars file, and never commit secrets to your wrangler.jsonc config.