wrangler

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

3|1|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/wopal-cn/wopal-space-ontology --skill wrangler-wopal-cn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wrangler
Source: https://github.com/wopal-cn/wopal-space-ontology/tree/main/skills/wrangler
Command: npx skills add https://github.com/wopal-cn/wopal-space-ontology --skill wrangler-wopal-cn

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires wrangler.

What problem does it solve? Wrangler CLI flags, config fields, and subcommands change frequently, so relying on memorized knowledge leads to outdated commands and broken configurations. This Skill ensures correct, current Wrangler syntax and best practices by biasing toward retrieval from official Cloudflare docs and the local config schema. ## Core Features & Use Cases - Deployment & Local Development: Covers wrangler dev, wrangler deploy, dry runs, environments, remote bindings, and .dev.vars secrets for local testing. - Resource Management: Provides commands and config bindings for KV, R2, D1, Vectorize, Hyperdrive, Workers AI, Queues, Containers, Workflows, Pipelines, and Secrets Store. - Type Safety & Observability: Generates TypeScript types with wrangler types, profiles startup with wrangler check startup, and streams logs with wrangler tail. - Use Case: You need to create a D1 database, run migrations, bind it to a Worker, and deploy to a staging environment. This Skill guides the exact commands and wrangler.jsonc configuration for each step. ## Quick Start Ask the AI to help you create and deploy a new Cloudflare Worker with a D1 database binding using Wrangler.

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` to validate first, or `--env staging` to target a specific environment.

How do I run D1 migrations with Wrangler?

Create a migration with `wrangler d1 migrations create <db> <name>`, then apply it locally with `wrangler d1 migrations apply <db> --local` or to production with `--remote`. List pending migrations using `wrangler d1 migrations list <db>`.

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; Workers AI always runs remotely and incurs usage charges even in local dev.

How do I set secrets in Wrangler without exposing them?

Use `wrangler secret put KEY` for an interactive prompt, pipe from a file, or use `wrangler secret bulk secrets.json` for multiple values. Never pass secret values as command arguments, echo them, or commit them to version control.

Why does my Worker binding show as undefined at runtime?

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