apilisted
Install: claude install-skill gsong/claude-marketplace
# Cloudflare
Do the Cloudflare work yourself, through the first tool on this list that can do it:
1. **wrangler**, for everything it covers: Workers, D1, KV, R2, Queues, Pages, secrets, deploys. Run it the way the repo does, such as `pnpm exec wrangler` when `package.json` lists it.
2. **cf-api**, the Cloudflare API at `https://api.cloudflare.com/client/v4` with a full-access token, for everything else. wrangler's login grants no Access, Zero Trust or DNS scopes, so those go here.
3. **The Cloudflare MCP server**, only when the API cannot do the job.
4. **The dashboard**, through `/browser:chrome`, only when no API exists, such as checking out a paid plan.
## cf-api
```bash
"${CLAUDE_PLUGIN_ROOT}/skills/api/scripts/cf-api" METHOD PATH [JSON_BODY]
```
PATH starts with `/`, as in [Cloudflare's API reference](https://developers.cloudflare.com/api/). `{account}` in PATH becomes the account ID: `CF_ACCOUNT_ID` when set, else the `account_id` in the nearest `wrangler.jsonc`, `wrangler.json` or `wrangler.toml`, else the only account the token reaches.
```bash
"${CLAUDE_PLUGIN_ROOT}/skills/api/scripts/cf-api" GET /accounts/{account}/access/apps
"${CLAUDE_PLUGIN_ROOT}/skills/api/scripts/cf-api" PUT /accounts/{account}/access/organizations '{"name": "team.cloudflareaccess.com", "auth_domain": "team.cloudflareaccess.com"}'
```
It prints Cloudflare's JSON response. Read `success` and `errors` from it. The exit status:
- **0:** a 2xx answer.
- **1:** an error answer, still printed