Skip to content

Command line (CLI)

Use @arbiro/cli to forward webhooks to localhost without a public URL, trigger synthetic test events, list events and resend one to a local handler.

@arbiro/cli helps you build your webhook handler on your own machine. It needs Node 22+.

npx @arbiro/cli --help
# or install it
npm install --global @arbiro/cli

Authenticate with a Test Mode key in ARBIRO_API_KEY (or --api-key). Use a Test Mode key on your machine; keep live keys on your servers.

export ARBIRO_API_KEY=arb_test_...

arbiro listen

Follows your account's new events through the API and forwards each one to a local URL. It needs no tunnel and no public URL: the CLI asks Arbiro for new events, so it works behind any firewall.

arbiro listen --forward-to http://localhost:3000/webhooks/arbiro
# Ready! Forwarding Test Mode events to http://localhost:3000/webhooks/arbiro
# Your webhook signing secret for this session is whsec_... (Ctrl+C to quit)
# 2026-11-27 10:00:00  --> dispute.opened [evt_...]
#                      <-- [200] POST http://localhost:3000/webhooks/arbiro (12 ms)

Each request is signed like a real webhook (Arbiro-Signature) with the session secret it prints, so your handler verifies it with the same code. Use that secret in development and your endpoint secret in production. History is not replayed: only events created after listen starts are forwarded, oldest first.

Option Meaning
--forward-to <url> Where to send the events (required).
--events a,b Only these event types.
--interval <seconds> Polling interval, 2 by default.
--secret whsec_... Use a fixed secret instead of a new one per session.
--json One JSON line per delivery.

arbiro trigger

Creates a synthetic event in Test Mode and delivers it to your endpoints and to listen. It never creates a payment or a transaction.

arbiro trigger payment.locked
arbiro trigger dispute.verdict_signed

arbiro events

arbiro events list --limit 20 --type dispute.opened
arbiro events resend evt_... --forward-to http://localhost:3000/webhooks/arbiro

Exit codes: 0 success, 1 API or delivery error, 2 wrong usage.

Updated