home / cloud / wrangler

Wrangler

Official · Cloudflare
3.9k

Official Cloudflare CLI for developing and operating Workers projects plus Pages, KV, D1, R2, Queues, and related resources.

$npm install --save-dev wrangler@latest
Language
TypeScript
Stars
3,860
Category
Cloud & Storage
Agent
Ready
Agent Compatibility
JSON Output
Agent Skill
MCP Support
AI Analysis

Wrangler is Cloudflare's command-line tool for building, deploying, and operating Workers projects and related Cloudflare developer-platform resources. It combines local dev and deployment flows with account-level commands for Pages, KV, D1, R2, Queues, versions, and log tails.

What It Enables
  • Start local Worker or Pages dev flows, bundle code, generate types, and deploy new revisions from the shell.
  • Inspect and change Cloudflare resources such as Worker versions and secrets, Pages projects and deployments, KV namespaces and keys, D1 databases and migrations, R2 buckets and objects, and Queues.
  • Tail logs, list recent deployments, and capture deployment metadata for follow-up automation without switching to the dashboard.
Agent Fit
  • The command tree is broad and mostly non-interactive once auth and config are in place, so agents can drive inspect-change-verify loops directly from shell commands.
  • Structured output is real but uneven: many read paths support --json or --format json, and deploy workflows can emit machine-readable event files, but some commands still default to tables or human text.
  • Browser OAuth login, credential requirements, and a few prompt-heavy flows around setup, deploy, or version rollout mean unattended use works best with pre-provisioned API tokens and explicit flags.
Caveats
  • Wrangler is tightly coupled to Cloudflare account state and project config, so useful automation usually requires wrangler.jsonc plus account credentials.
  • JSON coverage is not universal across the command tree, so some workflows still need carefully chosen commands or text parsing.