wrangler

Configure and deploy Cloudflare Workers projects using the Wrangler CLI.

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

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 guides you to inspect the project's actual Wrangler version, retrieve current documentation, and apply changes safely across environments. ## Core Features & Use Cases - Project Inspection: Detects the package manager, installed Wrangler version, framework, and active config file before running any command. - Documentation-Grounded Commands: Maps tasks like deployments, secrets, bindings, rollbacks, and migrations to the correct official Cloudflare documentation and local --help output. - Safe Change Application: Covers environment inheritance, secret handling, dashboard reconciliation, dry-run validation, and type regeneration. - 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 auto-provisioning, runs a dry-run deploy, and regenerates TypeScript types. ## Quick Start Use the wrangler skill to deploy my 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 wrangler deploy through your project's package scripts so it uses the locally installed Wrangler version. Validate first with wrangler deploy --dry-run using the intended config and environment, since a dry run checks build and packaging but not remote resources.

How do I set secrets for a Cloudflare Worker?

Use wrangler secret put with interactive input or a protected file/stdin mechanism, never passing secret values as command arguments. Note that secret put deploys immediately; use the wrangler versions secret workflow when the change must be staged.

Does Wrangler config apply to all environments automatically?

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

Why did my Wrangler deploy overwrite dashboard settings?

Wrangler can overwrite dashboard variables and routes during deployment. Reconcile dashboard changes with your config file before deploying, and verify resource identifiers since omitted identifiers can trigger automatic provisioning.

What are the limitations of Wrangler rollback?

Rollback restores Worker code but does not roll back connected resources or their data. Check the rollback limitations documentation before reverting a deployment that interacts with KV, D1, or other bound resources.