wrangler

Deploy and manage Cloudflare Workers and related resources via CLI.

Updated Mar 31, 2024
One-click install
npx skills add https://github.com/claughinghouse/dotfiles --skill wrangler-claughinghouse
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wrangler
Source: https://github.com/claughinghouse/dotfiles/tree/main/dot_config/opencode/skills/wrangler
Command: npx skills add https://github.com/claughinghouse/dotfiles --skill wrangler-claughinghouse

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Wrangler provides a unified CLI to deploy, develop, and manage Cloudflare Workers and related resources (KV, R2, D1, Vectorize, Hyperdrive, Workers AI, Containers, Queues, Workflows, Pipelines, and Secrets Store). It helps teams enforce syntax correctness, config best practices, and predictable deployment workflows.

Core Features & Use Cases

  • Deploy and manage Cloudflare Workers and associated resources (KV, R2, D1, etc.)
  • Local development and testing with wrangler dev
  • Configuration and environment management with wrangler.jsonc/configs, environment variables
  • Secrets and credential management for secure deployments
  • Managing multiple environments (staging, production) and rollbacks
  • Generate types and validate configuration with wrangler types and wrangler check

Quick Start

Install wrangler and initialize a new worker project to begin deploying.

Frequently Asked Questions about wrangler

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

FAQPage Schema
How do I deploy Cloudflare Workers using a CLI?

You can deploy Cloudflare Workers using a CLI by automating the deployment process with wrangler, which enforces syntax correctness and configuration best practices. It provides a unified interface to deploy and manage edge applications predictably across environments.

Can I manage Cloudflare D1 and KV resources during Workers deployment?

Yes, you can manage Cloudflare D1 and KV resources during Workers deployment. The CLI integrates directly with KV, R2, D1, and other Cloudflare services, allowing you to deploy, develop, and manage associated resources alongside your edge applications.

How do I set up local development for Cloudflare Workers?

To set up local development for Cloudflare Workers, use the local development and testing features provided by the CLI. You can run a local dev server to test your edge applications, validate configurations, and manage environment variables before deploying.

What is the best way to manage staging and production environments for edge applications?

The best way to manage staging and production environments for edge applications is using environment separation and incremental deployments. The CLI supports managing multiple environments, validating configurations, and executing rollbacks to ensure predictable deployment workflows.

How do I handle secrets and credentials for Cloudflare Workers securely?

To handle secrets and credentials securely for Cloudflare Workers, use the integrated secrets management features of the CLI. It ensures secure deployments by managing credentials, environment variables, and configurations without exposing sensitive data in your codebase.

Why does my Cloudflare Workers configuration fail validation before deployment?

Cloudflare Workers configuration fails validation when syntax or best practices are not met. The CLI enforces configuration validation and generates types to ensure correctness, preventing invalid configurations from causing inconsistent deployments across your environments.