wrangler

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

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

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 Cloudflare Workers configurations. This Skill ensures correct, current Wrangler syntax by biasing toward retrieval from official Cloudflare docs and the local config schema. ## Core Features & Use Cases - Full CLI Command Reference: Covers dev, deploy, types, tail, rollback, secrets, and startup profiling commands for Cloudflare Workers. - Binding Configuration: Provides wrangler.jsonc examples for KV, R2, D1, Vectorize, Hyperdrive, Workers AI, Queues, Containers, Workflows, Pipelines, and Secrets Store. - Use Case: You need to add a D1 database to your Worker, run migrations, and deploy to a staging environment. The Skill supplies the correct binding config, migration commands, and wrangler deploy --env staging syntax. ## Quick Start Ask the AI to help you create and deploy a new Cloudflare Worker with a KV namespace binding using the wrangler skill.

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 file, and compatibility date. Use `wrangler deploy --dry-run` to validate first, or `--env staging` to target a specific environment.

How do I add a D1 database binding to a Cloudflare Worker?

Create the database with `wrangler d1 create my-database`, then add a `d1_databases` entry in wrangler.jsonc with the binding name, database_name, and database_id. Run `wrangler types` afterward to update TypeScript bindings.

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

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

Does wrangler dev use real Cloudflare resources locally?

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

How do I set secrets in Wrangler without exposing values?

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, and use `wrangler secret bulk secrets.json` for multiple secrets without committing the file.

Why does my Worker exceed the startup time limit?

Run `wrangler check startup` to profile startup time and generate CPU profiles that identify slow initialization code. This detects scripts that exceed the startup limit before deployment fails.