wrangler

Guide wrangler CLI usage for Cloudflare Workers deployment and management.

Updated Aug 4, 2023
One-click install
npx skills add https://github.com/EmreOzdemiroglu/dotfiles --skill wrangler-emreozdemiroglu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wrangler
Source: https://github.com/EmreOzdemiroglu/dotfiles/tree/main/nvim/custom_rules/wrangler
Command: npx skills add https://github.com/EmreOzdemiroglu/dotfiles --skill wrangler-emreozdemiroglu

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you deploy and operate Cloudflare Workers without guessing configuration details or repeatedly debugging avoidable mistakes in setup, types, and environments.

Core Features & Use Cases

  • Command-first workflow: Get reliable guidance for common lifecycle tasks like developing locally, deploying, validating, checking auth, and tailing logs.
  • Config correctness for Workers: Use the recommended wrangler.jsonc approach, including compatibility_date, environment strategy, and resource bindings.
  • Type and validation support: Regenerate TypeScript bindings with wrangler types and catch errors early with wrangler check before deploying.
  • Practical real-world scope: Best for teams building Workers with KV/R2/D1/Vectorize/Queues/Workflows, plus remote resource bindings for realistic local development.

Quick Start

Run: npx wrangler init my-worker to scaffold a new Cloudflare Worker project, then validate it with wrangler check before deploying.

Frequently Asked Questions about wrangler

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure Cloudflare Workers using wrangler.jsonc for local development and production?

To configure Cloudflare Workers for local development and production, use wrangler.jsonc to define environment strategy, compatibility_date, and resource bindings for KV, R2, D1, and Queues across staging and production contexts.

What's the best way to generate TypeScript types for Cloudflare Workers bindings?

The best way to generate TypeScript types for Cloudflare Workers bindings is by running wrangler types after making configuration changes to ensure your code accurately reflects KV, R2, D1, and Vectorize resource definitions.

Can I use wrangler to manage remote resource bindings during local development?

Yes, you can use wrangler to manage remote resource bindings during local development, allowing your local Workers environment to interact directly with live KV, R2, D1, and Hyperdrive resources for realistic testing.

Does wrangler support deployment workflows for Cloudflare Pages and Queues?

Yes, wrangler supports deployment workflows for Cloudflare Pages and Queues, providing command-level operational instructions to deploy, manage, and tail logs for these resources alongside standard Workers AI and Workflows integrations.

Why should I run wrangler check before deploying my Cloudflare Worker?

You should run wrangler check before deploying your Cloudflare Worker to catch configuration and validation errors early, ensuring your wrangler.jsonc setup and resource bindings are correct prior to executing the deployment command.

Do I need a specific wrangler CLI version to use wrangler.jsonc and compatibility_date?

You need a compatible wrangler CLI installation to use wrangler.jsonc and compatibility_date, which are the recommended configuration approach for maintaining correct environment strategy and resource bindings across your Cloudflare Workers deployment.