wrangler

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

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Cloudflare Wrangler CLI flags and configuration fields change frequently, so relying on memorized commands leads to broken deployments, misconfigured bindings, and lost secrets. This Skill ensures every Wrangler command and config edit is grounded in the project's installed version and current official documentation. ## Core Features & Use Cases - Project Inspection: Detects the package manager, installed Wrangler version, framework, and active config file before running any command, so changes target the right Worker, environment, and account. - Documentation-Grounded Commands: Maps each task (deployments, secrets, environments, bindings, rollbacks, local development) to the correct Cloudflare docs page or local wrangler --help output instead of guessing syntax. - Safe Change Application: Enforces best practices such as keeping secrets out of logs, checking environment inheritance, reconciling dashboard changes, and validating with wrangler deploy --dry-run and regenerated types. - Use Case: You need to add a KV binding to a staging environment on an existing Workers project. The Skill inspects your wrangler.jsonc, verifies environment inheritance, checks the installed schema, applies the binding, regenerates types, and dry-runs the deploy. ## Quick Start Use the wrangler skill to add a KV namespace binding to my staging environment and validate the deployment with a dry run.

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 project's build workflow, then use wrangler deploy with the intended config and environment. Validate first with wrangler deploy --dry-run, which checks the 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, keeping values out of command arguments and logs. Note that secret put deploys immediately; use the wrangler versions secret workflow when the change must be staged.

Does Wrangler config apply to staging and production environments automatically?

No. Some fields must be specified separately for each environment, so a working default config does not establish that staging is configured. Check environment inheritance before adding bindings or variables.

Why does my Wrangler command fail with unknown flags?

CLI flags and configuration fields change between Wrangler versions, so memorized or current-docs syntax may not match your installed version. Check project-local wrangler --help and the installed config-schema.json to confirm feature availability.

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. Review the rollback limitations documentation before reverting a deployment that interacts with bindings like KV or D1.