Skip to main content
relay login opens the dashboard in your browser and stores a restricted key for the CLI in ~/.config/relay.

Forward webhooks to your machine

The CLI opens a connection to Relay and forwards every test-mode event to your local server, signed with a session secret it prints when it starts. Add --events invoice.*,customer.created to forward only some types.
Sequence diagram between Relay, the Relay CLI and a local server on your laptop: relay listen opens an outbound connection to Relay and prints a session signing secret; you send a test event with relay events send or an rk_test_ key; Relay sends every test-mode event over the connection, signed with the session secret; the CLI posts it to localhost:3000/webhooks, where the server verifies the signature and answers 200.

The CLI connects out to Relay, so your laptop needs no public URL. Test-mode events come down that connection and the CLI posts them to your local server.

Send a test event

Replay deliveries

Commands