Back to Skills

wrangler

Cloudflare Workers CLI for deploying, developing, and managing Workers, KV, R2, D1, Vectorize, Hyperdrive, Workers AI, Containers, Queues, Workflows, Pipelines, and Secrets Store. Load before running wrangler commands to ensure correct syntax and best practices. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.

923stars90forksUpdated 4/20/2026

Security Assessment

Low Risk(70/100)

Detected risks:

Secret Exposure([SKILL.md] API_KEY=, [SKILL.md] PRIVATE_KEY, [SKILL.md] AWS_ACCESS_KEY)
Security Score70/100

About wrangler

The Wrangler skill provides structured guidance for using the Cloudflare Workers CLI to develop, deploy, and manage serverless applications on the Cloudflare platform. It ensures that users follow up-to-date practices by emphasizing retrieval of the latest documentation rather than relying on potentially outdated pre-trained knowledge. This approach helps prevent errors caused by changes in CLI flags, configuration formats, or platform capabilities, making it especially valuable for maintaining accuracy in fast-evolving environments.

The skill covers core Wrangler workflows including project initialization, local development, deployment, and monitoring. It supports configuration using the modern `wrangler.jsonc` format and highlights best practices such as setting a recent `compatibility_date`, generating TypeScript bindings after configuration changes, and using environment-specific configurations for staging and production. It also provides guidance on managing various Cloudflare resources such as KV namespaces, R2 buckets, D1 databases, Vectorize indexes, Hyperdrive connections, Durable Objects, cron triggers, and Workers AI bindings. Additionally, it includes commands for profiling startup performance, viewing logs, and verifying installation.

This skill is particularly useful for developers building and maintaining Cloudflare Workers applications, including backend engineers, full-stack developers, and DevOps practitioners. It is suited for both new projects and ongoing maintenance, ensuring consistent configuration and deployment practices. By reinforcing retrieval-based accuracy and structured CLI usage, it helps teams reduce configuration errors, improve deployment reliability, and stay aligned with the latest Cloudflare platform updates.

FAQ

How do I verify that Wrangler is installed correctly?

Run `wrangler --version` and ensure it returns version 4.x or higher. If not installed, use `npm install -D wrangler@latest`.

What configuration format should I use for Wrangler?

You should use `wrangler.jsonc` instead of TOML, as newer features are only supported in the JSON configuration format.

Why is setting a compatibility_date important?

The compatibility_date ensures your Worker uses a consistent runtime behavior. It should be set to a recent date (within 30 days) to stay aligned with platform updates.

How does local development handle resource bindings?

By default, local development uses simulated local storage for bindings unless explicitly configured with `remote: true`.

What should I do after modifying the Wrangler configuration?

You should run `wrangler types` to regenerate TypeScript bindings so they stay in sync with your updated configuration.

Install wrangler

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill