# AGENTS.md instructions for Stripe CLI for webhook testing and payment development

Use Stripe CLI for webhook testing and payment development only for: A practical CLI for testing Stripe webhooks, creating test events, and debugging payment integrations.

## 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: `stripe listen --forward-to localhost:3000/api/webhooks/stripe` — Forwards test webhooks to local development.
- safe: `stripe trigger checkout.session.completed` — Creates a test event for webhook validation.
- destructive: `stripe refunds create --charge ch_...` — Moves money and must not be agent-autonomous.

## Safety notes

- Listen and trigger commands are good for local webhook testing.
- Commands that create, refund, or cancel live resources must require explicit approval.
- Use test mode keys for agent-driven development work.