wrangler

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

13|1|Updated Feb 9, 2026
One-click install
npx skills add https://github.com/vedang/dotagents --skill wrangler-vedang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wrangler
Source: https://github.com/vedang/dotagents/tree/main/specific_skills/wrangler
Command: npx skills add https://github.com/vedang/dotagents --skill wrangler-vedang

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires wrangler.

What problem does it solve? Wrangler CLI flags, config fields, and subcommands change frequently, so pre-trained knowledge is often outdated. This Skill ensures correct syntax and current best practices when deploying and managing Cloudflare Workers and their bindings by biasing toward retrieval from official Cloudflare docs. ## Core Features & Use Cases - Deployment & Development: Initialize projects, run local dev servers with remote bindings, deploy Workers, manage versions, and roll back releases. - Resource Management: Create and configure KV namespaces, R2 buckets, D1 databases, Vectorize indexes, Hyperdrive configs, Queues, Containers, Workflows, Pipelines, and Secrets Store. - Configuration & Safety: Write wrangler.jsonc configs with bindings, generate TypeScript types, manage secrets securely, and profile Worker startup time. - Use Case: You need to deploy a Worker with a D1 database and R2 bucket. The Skill guides you to write the wrangler.jsonc bindings, run migrations, set secrets via interactive prompts, and deploy with a dry-run validation first. ## Quick Start Ask the agent to check the installed Wrangler version and deploy your Worker to the staging environment using wrangler deploy --env staging.

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, main entry point, and compatibility_date. Use wrangler deploy --dry-run first to validate changes without deploying, and wrangler deploy --env staging to target a specific environment.

How do I manage secrets in Cloudflare Workers?

Use wrangler secret put API_KEY for an interactive prompt, which is the preferred secure method. Never pass secret values as command arguments or echo them; for bulk operations use wrangler secret bulk with a JSON file that is not committed to version control.

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

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 and Browser Rendering.

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 verify the binding names align.

How do I run 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. List pending migrations with wrangler d1 migrations list before applying.