The commands you will use most
The CLI owns hook management. The website handles account, billing, and read-only workspace context. Most workflows use only the commands below.
| Command | When to use it |
|---|---|
tofu login | Open browser approval and connect the CLI to your account. |
tofu hooks create stripe --name "Stripe" | Create a named provider URL for Stripe webhooks. |
tofu hooks url stripe | Print the provider URL to paste into Stripe. |
tofu targets set local "http://127.0.0.1:3000/api/webhooks/stripe" --hook stripe | Forward events to the webhook route in your local app. |
tofu watch stripe | Stream incoming events and delivery results. |
tofu replay latest --hook stripe | Replay the newest event after updating your handler, while its payload is available. |
tofu events expire <event-id> | Remove stored request body and headers immediately. The event stays visible but cannot be replayed. |
Deeper command guides
tofu hooks
Create stable webhook URLs per provider, print the URL to paste into Stripe or GitHub, list active hooks, and remove hooks you no longer need.
tofu targets
Set a localhost target for your hook, add multiple targets for staging or preview environments, and remove targets when a branch closes.
tofu watch
Stream incoming webhook events and delivery results in the terminal. Filter by hook, see signature headers, response bodies, and target latency.
tofu replay
Replay the latest event or a specific event ID to your local target after fixing a handler. Works while the payload is still inside the retention window.