---
title: "Comment by Adam Mortka on \"How to Run Stripe Webhooks Locally\" | Hashnode"
description: "well, actually &quot;[...] since Stripe can only send events to a real server, not localhost.&quot; is not entirely true. Using dedicated Stripe CLI you can eas"
url: "https://hashnode.com/posts/how-to-run-stripe-webhooks-locally/5fca0ba9f758d96d19b7ff12/comment/5fccc7fd7d1d8b0b08747659"
---

[Discussion](https://hashnode.com/posts/how-to-run-stripe-webhooks-locally/5fca0ba9f758d96d19b7ff12)

Comment [How to Run Stripe Webhooks Locally](https://hashnode.com/posts/how-to-run-stripe-webhooks-locally/5fca0ba9f758d96d19b7ff12)

[Adam Mortka](https://hashnode.com/@amortka)

[Dec 6, 2020](https://hashnode.com/posts/how-to-run-stripe-webhooks-locally/5fca0ba9f758d96d19b7ff12/comment/5fccc7fd7d1d8b0b08747659)

well, actually "\[...\] since Stripe can only send events to a real server, not localhost." is not entirely true. Using dedicated [Stripe CLI](https://stripe.com/docs/cli/listen) you can easily listen for any stripe events and forward them to any (including localhost) address.

it's simple as a single line command:

```
stripe listen --forward-to localhost
```

[Kristopher Guzman](https://hashnode.com/@kag359six)

[Dec 6, 2020](https://hashnode.com/posts/how-to-run-stripe-webhooks-locally/5fca0ba9f758d96d19b7ff12/comment/5fccc7fd7d1d8b0b08747659#reply-5fcccaae7d1d8b0b08747697)

I've used this in the past, I vaguely recall events only being triggerable using `stripe trigger INSERT_EVENT_HERE`. I could be wrong though. Do events fire for API calls outside the CLI as well?

[Kristopher Guzman](https://hashnode.com/@kag359six)

[Dec 6, 2020](https://hashnode.com/posts/how-to-run-stripe-webhooks-locally/5fca0ba9f758d96d19b7ff12/comment/5fccc7fd7d1d8b0b08747659#reply-5fcccc3bf4006d0b1bedf770)

Ah yes, just confirmed. This is definitely the preferred way to go then. Thanks for pointing this out!
