Use this skill to run Stripe CLI workflows safely and reproducibly for local and staging environments.
Default posture: sandbox-first, least privilege, no secret leakage, no destructive live-mode actions.
# check install
stripe version
# authenticate (browser flow)
stripe login
# verify account context
stripe config --list
If using API key auth in CI/local automation:
export STRIPE_API_KEY=sk_test_...
stripe customers list --limit 3
stripe listen --forward-to ...references/workflows.md → Webhook Local Loopstripe trigger ... or stripe fixtures ...references/workflows.md → Trigger & Fixturesstripe logs tail, stripe events list, stripe events resendreferences/commands.mdstripe subscriptions update ..., stripe invoices create_preview ...)sk_test_...) and sandbox account context.--skip-verify except when explicitly required in local-only environments.stripe config --liststripe whoami (if available)stripe trigger as stateful: it creates objects and side effects in sandbox.stripe listen --forward-to localhost:4242/webhook
Filter events when needed:
stripe listen \
--events checkout.session.completed,invoice.paid,invoice.payment_failed,customer.subscription.updated \
--forward-to localhost:4242/webhook
Load event configuration from dashboard webhook endpoint:
stripe listen --load-from-webhooks-api --forward-to localhost:4242
stripe trigger checkout.session.completed
stripe trigger invoice.paid
stripe trigger customer.subscription.updated
For complex scenarios, prefer fixtures:
stripe fixtures path/to/fixture.json
stripe logs tail
stripe events list --limit 10
stripe events resend evt_... --webhook-endpoint=we_...
stripe products create --name "Test Product" --latest
stripe products create --name "Pinned Version" --stripe-version 2026-01-28.clover
Before running commands that mutate state, verify:
If user asks for live-mode operation, require explicit confirmation and explain blast radius.
scripts/stripe-dev-listen.shstripe listen with safer defaults and event filters.scripts/stripe-sanitize.shreferences/workflows.md - production-grade Stripe CLI workflowsreferences/commands.md - high-value command cheatsheetreferences/security.md - security and compliance checklist for community use共 1 个版本