About wrangler
A skill for using Cloudflare Wrangler CLI in deployment and account operations. It emphasizes checking current command help and project configuration, confirming the account, and handling secrets and local storage carefully.
Key features
- 01Deploy Workers
- 02Inspect logs with tail
- 03Manage KV, R2, D1, and Queues
- 04Check account and project configuration
- 05Avoid leaking secrets
Use cases
- 01Deploying a Cloudflare project
- 02Inspecting Worker logs
- 03Listing or retrieving KV data
- 04Checking account routing before changes
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ steipete/ agent-scripts --skill wranglerAfter installing, type/wranglerin Claude Code to confirm it loaded.
Bundled filesagents/openai.yaml
Details
From the project READMEWrangler
Use for Cloudflare Wrangler CLI work: deploys, tails, KV/R2/D1/Queues/Workers, secrets, bindings, and account routing.
Defaults
- Retrieval first for flags/config:
wrangler --help, subcommand--help, localnode_modules/wrangler/config-schema.json, then Cloudflare docs. - Prefer repo wrapper:
npm exec --yes --package wrangler -- wrangler ...unless repo has its own script. wrangler whoamibefore account-sensitive work.- ReleaseBar prod account:
[email protected]'s Account/de09342a728de2c25c85cc6b34d68739. - OpenClaw projects: use OpenClaw account /
91b59577e757131d68d55a471fe32aca. Ask if unsure.
Pitfalls
- Do not invent flags from memory. Wrangler 4 removed/changed some old flags; confirm with
--help. wrangler kv key listhas no--limit; use--prefixand filter locally.- Run Wrangler KV/list/get/admin reads serially when workerd/local storage starts up; parallel runs can hit SQLite
SQLITE_BUSY. wrangler tail --sampling-ratemust be>0and<1; use0.999for near-full sampling, not1.- Stop tails you start. Use a PTY when interactive stop matters; otherwise kill the exact
wrangler tail <worker>process. - Never print secrets. Query exact secret names only; do not dump env.
Quick Commands
npm exec --yes --package wrangler -- wrangler whoami
npm exec --yes --package wrangler -- wrangler deploy
npm exec --yes --package wrangler -- wrangler tail <worker> --format json --sampling-rate 0.999 --search '<term>'
npm exec --yes --package wrangler -- wrangler kv key list --namespace-id <id> --prefix '<prefix>'
npm exec --yes --package wrangler -- wrangler kv key get '<key>' --namespace-id <id>
Account Check
For repo config, read wrangler.toml / wrangler.json(c) before commands. If config account and intended product disagree, stop and ask.
Comments
Markdown supported