# AGENTS.md instructions for Workers、D1、KV、R2 操作のための Cloudflare Wrangler

Use Workers、D1、KV、R2 操作のための Cloudflare Wrangler only for: Workers デプロイ、D1、KV、R2、Pages、ログ操作に使う Cloudflare CLI。

## Default behavior

- Prefer non-interactive commands and stable output formats: json, text.
- Start with read-only inspection commands before changing state.
- Show the exact command before destructive or deployment actions.
- Require explicit user approval for commands marked `requires-review` or `destructive`.

## Useful commands

- safe: `wrangler --version` — Confirms the installed CLI.
- safe: `wrangler deployments list` — Inspects recent Worker deployments.
- requires-review: `wrangler deploy` — Changes production infrastructure and should be approved.

## Safety notes

- Read commands such as deployments list and d1 execute SELECT are useful for diagnostics.
- Deploy, KV writes, R2 deletes, and D1 mutation commands should require approval.
- For automation, prefer CLOUDFLARE_API_TOKEN over interactive OAuth.