wrangler

Run and troubleshoot Wrangler CLI commands for Cloudflare Workers development and deployment.

Updated Sep 17, 2026
One-click install
npx skills add https://github.com/bramanda48/skills --skill wrangler-bramanda48
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wrangler
Source: https://github.com/bramanda48/skills/tree/main/skills/cloudflare-wrangler
Command: npx skills add https://github.com/bramanda48/skills --skill wrangler-bramanda48

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Wrangler CLI flags and configuration fields change frequently, so relying on memorized commands leads to broken deployments and misconfigured Workers. This Skill ensures commands and config are validated against the project's installed Wrangler version and current Cloudflare documentation before execution. ## Core Features & Use Cases - Project Inspection: Detects the package manager, installed Wrangler version, framework, and active config file so commands run against the project's local setup rather than a global install. - Documentation-Grounded Commands: Retrieves the relevant Cloudflare docs or local wrangler --help output for the specific task, covering deployments, rollbacks, secrets, environments, bindings, and migrations from Pages or Vercel. - Safe Change Application: Guides config edits in wrangler.jsonc, environment inheritance checks, secret handling that keeps values out of logs, and validation via wrangler types and wrangler deploy --dry-run. - Use Case: You need to add a KV binding to a staging environment and deploy. The Skill checks environment inheritance, verifies the binding identifier to avoid accidental automatic provisioning, regenerates types, and dry-runs the deploy before applying it. ## Quick Start Use the wrangler skill to deploy my Cloudflare Worker to the staging environment and verify the configuration first.

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 the deploy through your project's package scripts or local Wrangler version, then validate with wrangler deploy --dry-run using the intended config and environment. A successful dry run checks build and packaging but does not verify remote resources or runtime behavior.

How do I set secrets for a Cloudflare Worker?

Use wrangler secret put with interactive input or a protected file/stdin mechanism so values stay out of command arguments and logs. Note that secret put and secret delete deploy immediately; use the wrangler versions secret workflow when the change must be staged.

Does Wrangler config apply to staging and production environments separately?

Not automatically. Some fields must be specified per environment, so a working default config does not mean staging is configured. Check environment inheritance before adding bindings or variables, and with the Vite plugin select the environment via CLOUDFLARE_ENV at build time.

Why does my Wrangler command fail with unknown flags?

CLI flags and config fields change between Wrangler versions, so memorized or documented examples may not match your installed version. Check project-local wrangler --help and the installed config-schema.json, and upgrade Wrangler explicitly if a required feature is missing.

Can I migrate a Cloudflare Pages or Vercel project to Workers?

Yes, Cloudflare provides migration guides for Pages to Workers and Vercel to Workers that the Skill follows when a migration is requested. The process adapts your existing framework and adapter setup rather than rewriting the application.

What are the limitations of Wrangler rollback?

Rollback restores Worker code to a previous version but does not roll back connected resources or their data. Check the rollback limitations documentation before reverting a deployment that interacts with bindings like KV or D1.