bash
stripe config --listProfiles, config, request logs, diagnostics, and troubleshooting patterns for the Stripe CLI.
stripe config --liststripe config --helpstripe logs tail --profile sandbox-aRun a command using the environment-provided key instead of interactive login.
STRIPE_API_KEY=sk_test_xxx stripe customers list --limit 3echo "STRIPE_WEBHOOK_SECRET=whsec_xxx" >> .env.localstripe logs tailstripe logs tail --livestripe logs tail | jq "select(.status >= 400)"stripe events list --limit 100 | jq ".data[] | select(.pending_webhooks > 0) | {id, type, pending_webhooks}"stripe logs tail > stripe-request-log.jsonlstripe payment_intents create --helpWhen local webhook signature checks fail, restart listen and copy the current whsec value.
stripe listen --forward-to localhost:3000/api/webhooks/stripestripe checkout sessions retrieve cs_test_123 --expand payment_intent --expand customerstripe customers create --email ada@example.com --lateststripe subscriptions list --status past_due --expand data.customer | jq -r ".data[] | [.customer.name, .customer.email] | @csv"