Start here
Get from install to replay in one terminal session
Tofu gives every provider a stable URL, forwards requests to your local app, and keeps events ready to inspect. Once the payload expires, the event remains visible but can no longer be replayed.
Terminal
$ curl -fsSL https://trytofu.dev/install | sh$ tofu login$ tofu hooks create stripe --name "Stripe"$ tofu hooks url stripe$ tofu targets set local "http://127.0.0.1:3000/api/webhooks/stripe" --hook stripe$ tofu watch stripe$ tofu replay latest --hook stripeLog in
Run the commands from the project that receives webhooks. The provider URL stays the same across restarts, branches, and ports.
Step by step
- 1
tofu loginOpen browser approval and connect the CLI to your account.
- 2
tofu hooks create stripe --name "Stripe"Create a named provider URL for Stripe webhooks.
- 3
tofu hooks url stripePrint the provider URL to paste into Stripe.
- 4
tofu targets set local "http://127.0.0.1:3000/api/webhooks/stripe" --hook stripeForward events to the webhook route in your local app.
Next steps
Once events are arriving, the rest of the docs cover the same flow in depth.