Use Stripe CLI on a live account

Stripe CLI is quite useful to trigger webhooks and do some debugging. It's mostly made for sandbox accounts or test environments. But you can also use it on a live account.

In our case, we were trying to retrigger an old event so it could be processed by a new webhook. It's currently not possible to do this through the Stripe dashboard, but you can use the CLI to do it.

Resend Old Event to a New Stripe Webhook

stripe events resend [EVENT_ID] \
  --api-key [API_KEY] \
  --live \
  --webhook-endpoint=[WEBHOOK_ENDPOINT]

Replace the following variables:

  • [EVENT_ID] with the ID of the event you want to resend. It should start with evt_.
  • [API_KEY] with your Stripe API key. It should start with sk_live_ (you may be able to make it work with a Restricted API key, in that case it'll start with rk_live_).
  • [WEBHOOK_ENDPOINT] with the ID of the webhook you want to use. It should start with we_.

You can monitor if the event was correctly triggered by checking the webhook logs in the Stripe dashboard.

2025-07-01

Thank you for reading! If you have any questions or feedback, please feel free to contact us at hi@davette.ca.

$