wrangler

Guides Cloudflare Workers deployment, configuration, and resource management via the Wrangler CLI.

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

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 agents 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 over TOML, compatibility dates, type generation via wrangler types, and secure secret handling. - Use Case: When asked to deploy a Worker with a D1 database and KV cache, the agent first checks the latest docs, writes a valid wrangler.jsonc with correct bindings, runs migrations, and deploys with the correct flags. ## Quick Start Ask the agent to deploy your Cloudflare Worker or configure a binding, and it will verify Wrangler is installed and use current documentation for correct syntax.

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 configure D1, KV, or R2 bindings in wrangler.jsonc?▼

Add binding arrays to wrangler.jsonc: `d1_databases` with database_name and database_id, `kv_namespaces` with the namespace id, and `r2_buckets` with the bucket name. Run `wrangler types` afterward to regenerate TypeScript definitions.

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

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

How do I manage secrets in Cloudflare Workers securely?▼

Use `wrangler secret put KEY` with the 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 that is not committed.

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 update TypeScript definitions and restart `wrangler dev` so the new bindings load.

Can I test Workers locally before deploying?▼

Yes, `wrangler dev` runs a local server with simulated bindings by default. Set `remote: true` on specific bindings to connect to real resources, and use @cloudflare/vitest-pool-workers for automated testing.