stripe versionUseful when checking compatibility in CI or debugging CLI behavior.
Core Stripe CLI commands for login, auth, help, webhooks, testing, logs, and common resource operations.
Bootstrap the Stripe CLI and inspect available commands.
stripe versionUseful when checking compatibility in CI or debugging CLI behavior.
stripe helpstripe listen --helpstripe loginstripe logoutstripe config --listUse this to verify which profile or account context your CLI commands will use.
stripe customers list --livestripe customers list --api-key sk_test_xxxstripe customers list --profile my-sandboxOverride the API version for a single request.
stripe products create --name="My Product" --stripe-version 2026-02-25.cloverTest a request against the latest available API version.
stripe products create --name="My Product" --latestGlobal flags, JSON output, and shell-friendly usage patterns.
stripe customers list --limit 5Request expanded objects directly from Stripe.
stripe subscriptions list --expand data.customerstripe customers list --limit 3 | jq ".data[] | {id, email}"stripe payment_intents create --amount 5000 --currency usd --idempotency-key order_123Store key-value metadata on supported objects.
stripe customers create --name "Ada Lovelace" --metadata team=backend --metadata source=clistripe checkout sessions retrieve cs_test_123 --expand payment_intent --expand customerstripe get /v1/customers/cus_123Call an arbitrary POST endpoint directly from the CLI.
stripe post /v1/customers -d email=ada@example.com -d name="Ada Lovelace"Delete or deactivate supported resources with a raw request.
stripe delete /v1/webhook_endpoints/we_123Discover the resource namespace before drilling into subcommands.
stripe customers --helpLocal webhook forwarding, event triggering, and streaming API request logs.
Listen for Stripe events and forward them to a local endpoint.
stripe listen --forward-to localhost:4242/webhooksFilter forwarded events to a focused set of names.
stripe listen --events payment_intent.created,checkout.session.completed,charge.failed --forward-to localhost:4242/webhooksDisable HTTPS certificate verification when testing locally.
stripe listen --skip-verify --forward-to https://localhost:3000/api/webhooks/stripeLoad event configuration from a Stripe-registered endpoint and forward locally.
stripe listen --load-from-webhooks-api --forward-to localhost:3000Create the object graph for checkout.session.completed testing.
stripe trigger checkout.session.completedFire a payment_intent.succeeded fixture.
stripe trigger payment_intent.succeededInspect the available fixtures for a Stripe surface.
stripe trigger checkout --helpStream API request logs from Stripe to your terminal.
stripe logs tailstripe logs tail | jq "select(.status >= 400)"stripe events list --limit 10stripe events retrieve evt_123Create, list, retrieve, update, and delete common Stripe resources from the terminal.
stripe customers create --name "Ada Lovelace" --email ada@example.comstripe customers list --limit 10stripe customers retrieve cus_123stripe customers update cus_123 --email new@example.com --metadata plan=prostripe customers delete cus_123stripe products create --name "Starter Plan" --description "Created with Stripe CLI"stripe prices create --unit-amount 3000 --currency usd --product prod_123Attach a monthly recurring price to a product.
stripe prices create --unit-amount 1500 --currency usd --product prod_123 --recurring interval=monthCreate a test payment intent from the terminal.
stripe payment_intents create --amount 5000 --currency usdConfirm an existing payment intent if your flow requires it.
stripe payment_intents confirm pi_123stripe refunds create --payment-intent pi_123Generate a hosted Checkout session for a price.
stripe checkout sessions create --mode payment --success-url https://example.com/success --cancel-url https://example.com/cancel --line-items price=price_123,quantity=1