cloudflare-wrangler_skill

This skill helps you manage Cloudflare workers, R2/KV/D1 resources and secrets with Wrangler, enabling streamlined deployment, storage, and configuration.
  • Python

2.5k

GitHub Stars

2

Bundled Files

2 months ago

Catalog Refreshed

3 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstrat where the catalogue uses aiagentskills.

npx veilstrat add skill openclaw/skills --skill cloudflare-wrangler

  • _meta.json303 B
  • SKILL.md11.0 KB

Overview

This skill manages Cloudflare Workers, KV, D1, R2, and secrets using the Wrangler CLI. It centralizes common wrangler commands, R2 configuration patterns, lifecycle rules, and Pages deployment tips to streamline development and deployment workflows. Use it to deploy workers, manage storage and databases, tail logs, and handle secrets safely.

How this skill works

The skill documents how to authenticate Wrangler with an API token and where credentials are stored (~/.openclaw/secrets.json). It provides concrete wrangler CLI commands for worker lifecycle, KV namespaces, D1 databases and migrations, R2 object storage and presigned URLs, secrets management, queues, and Pages deployments. It also explains config file precedence (JSON vs TOML) and common troubleshooting steps.

When to use it

  • Deploy or rollback Cloudflare Workers and tail live logs during incidents.
  • Manage KV namespaces and perform bulk key operations for caching or feature flags.
  • Provision and run D1 databases, run migrations, export backups, or execute SQL locally.
  • Store, lifecycle-manage, and generate presigned URLs for objects in R2.
  • Configure Pages deployments when wrangler auth is limited or a direct API upload is required.

Best practices

  • Store Cloudflare tokens and R2 credentials in ~/.openclaw/secrets.json and export CLOUDFLARE_API_TOKEN for CLI use.
  • Choose one config format (wrangler.json/jsonc OR wrangler.toml); JSON takes precedence if both exist.
  • Use R2 lifecycle rules to auto-delete short-lived uploads (minimum granularity is 1 day).
  • Keep Node.js updated to v20+ for Wrangler compatibility and use npx wrangler for project-scoped installs.
  • Set secrets with wrangler secret put (or bulk upload from JSON) rather than embedding sensitive values in config files.

Example use cases

  • Deploy a production worker and immediately tail logs to verify runtime behavior.
  • Create a KV namespace for session data and bulk-load initial keys from JSON.
  • Create a D1 database, apply migrations, and export a backup before a schema change.
  • Upload user file to R2, generate a short presigned URL for download, and rely on lifecycle rules to auto-clean.
  • Deploy a static site to Pages using env vars and direct multipart upload when wrangler auth fails.

FAQ

Store them in ~/.openclaw/secrets.json under cloudflare.apiToken and cloudflare.r2, and export CLOUDFLARE_API_TOKEN for wrangler commands.

Why are my wrangler config changes ignored?

If wrangler.json/jsonc exists it takes precedence over wrangler.toml. Delete or update the JSON file or edit the JSON config instead.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational