$npx -y skills add Dicklesworthstone/agent_flywheel_clawdbot_skills_and_integrations --skill wranglerDeploy and manage Cloudflare Workers, Pages, KV, R2, D1, and other Cloudflare services using the wrangler CLI.
| 1 | # Wrangler Skill |
| 2 | |
| 3 | Use the `wrangler` CLI to manage Cloudflare Workers and related services. |
| 4 | |
| 5 | ## Workers |
| 6 | |
| 7 | List deployed workers: |
| 8 | ```bash |
| 9 | wrangler deployments list |
| 10 | ``` |
| 11 | |
| 12 | Deploy a worker: |
| 13 | ```bash |
| 14 | wrangler deploy |
| 15 | ``` |
| 16 | |
| 17 | Tail live logs from a worker: |
| 18 | ```bash |
| 19 | wrangler tail <worker-name> |
| 20 | ``` |
| 21 | |
| 22 | Run worker locally: |
| 23 | ```bash |
| 24 | wrangler dev |
| 25 | ``` |
| 26 | |
| 27 | ## KV (Key-Value Storage) |
| 28 | |
| 29 | List KV namespaces: |
| 30 | ```bash |
| 31 | wrangler kv namespace list |
| 32 | ``` |
| 33 | |
| 34 | List keys in a namespace: |
| 35 | ```bash |
| 36 | wrangler kv key list --namespace-id <namespace-id> |
| 37 | ``` |
| 38 | |
| 39 | Get a value: |
| 40 | ```bash |
| 41 | wrangler kv key get <key> --namespace-id <namespace-id> |
| 42 | ``` |
| 43 | |
| 44 | Put a value: |
| 45 | ```bash |
| 46 | wrangler kv key put <key> <value> --namespace-id <namespace-id> |
| 47 | ``` |
| 48 | |
| 49 | ## R2 (Object Storage) |
| 50 | |
| 51 | List R2 buckets: |
| 52 | ```bash |
| 53 | wrangler r2 bucket list |
| 54 | ``` |
| 55 | |
| 56 | List objects in a bucket: |
| 57 | ```bash |
| 58 | wrangler r2 object list <bucket-name> |
| 59 | ``` |
| 60 | |
| 61 | Upload a file: |
| 62 | ```bash |
| 63 | wrangler r2 object put <bucket-name>/<key> --file <local-path> |
| 64 | ``` |
| 65 | |
| 66 | ## D1 (SQLite Database) |
| 67 | |
| 68 | List D1 databases: |
| 69 | ```bash |
| 70 | wrangler d1 list |
| 71 | ``` |
| 72 | |
| 73 | Execute SQL query: |
| 74 | ```bash |
| 75 | wrangler d1 execute <database-name> --command "SELECT * FROM users LIMIT 10" |
| 76 | ``` |
| 77 | |
| 78 | Run migrations: |
| 79 | ```bash |
| 80 | wrangler d1 migrations apply <database-name> |
| 81 | ``` |
| 82 | |
| 83 | ## Pages |
| 84 | |
| 85 | List Pages projects: |
| 86 | ```bash |
| 87 | wrangler pages project list |
| 88 | ``` |
| 89 | |
| 90 | Deploy a directory to Pages: |
| 91 | ```bash |
| 92 | wrangler pages deploy <directory> --project-name <project> |
| 93 | ``` |
| 94 | |
| 95 | ## Secrets |
| 96 | |
| 97 | Set a secret: |
| 98 | ```bash |
| 99 | echo "secret-value" | wrangler secret put <SECRET_NAME> |
| 100 | ``` |
| 101 | |
| 102 | List secrets: |
| 103 | ```bash |
| 104 | wrangler secret list |
| 105 | ``` |
| 106 | |
| 107 | ## Configuration |
| 108 | |
| 109 | Check current authentication: |
| 110 | ```bash |
| 111 | wrangler whoami |
| 112 | ``` |
| 113 | |
| 114 | Login (opens browser): |
| 115 | ```bash |
| 116 | wrangler login |
| 117 | ``` |