wrangler

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

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

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 directs retrieval from official Cloudflare docs and the local config schema before running any Wrangler command, preventing syntax errors and misconfigured bindings. ## Core Features & Use Cases - Command Reference: Covers core commands for dev, deploy, types generation, tailing logs, versions, and rollback. - Binding Configuration: Provides wrangler.jsonc examples for KV, R2, D1, Vectorize, Hyperdrive, Workers AI, Queues, Containers, Workflows, Pipelines, and Secrets Store. - Secure Secret Handling: Enforces interactive prompts and file-based input for secrets instead of passing values as CLI arguments. - Use Case: When deploying a Worker with a D1 database and R2 bucket, load this Skill to generate the correct wrangler.jsonc bindings, run migrations, and deploy with the right flags. ## Quick Start Use the wrangler skill to deploy my Cloudflare Worker with a D1 database binding and generate updated TypeScript types.

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 name, main, 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, and R2 bindings in wrangler.jsonc?▼

Add d1_databases, kv_namespaces, and r2_buckets arrays to wrangler.jsonc with binding names and resource IDs. After changing config, run wrangler types to regenerate TypeScript bindings for your Worker code.

Should I use wrangler.jsonc or wrangler.toml 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 of fields and binding shapes.

How do I set secrets for a Cloudflare Worker securely?▼

Run wrangler secret put API_KEY and enter the value at the interactive prompt, or pipe from a file. Never pass secret values as command arguments or echo them; use wrangler secret bulk with an uncommitted JSON file for multiple secrets.

Why is my binding undefined inside the Worker?▼

The binding name in your code must exactly match the binding field in wrangler.jsonc. After fixing the config, run wrangler types to update TypeScript definitions and restart wrangler dev.

Can I test cron triggers and bindings locally with Wrangler?▼

Yes, run wrangler dev --test-scheduled and visit http://localhost:8787/__scheduled to trigger cron handlers. Bindings use local simulation by default; set remote: true in binding config to connect to real resources.