@simplehook/cli
v0.1.3
Published
CLI for simplehook — pull webhook events, check queue status.
Readme
@simplehook/cli
Command-line interface for simplehook -- pull webhook events and inspect queue status from your terminal.
Install
npm install -g @simplehook/cliQuick Start
# Set your API key
export SIMPLEHOOK_KEY=ak_...
# Pull the next webhook event
simplehook pull
# Wait for an event to arrive
simplehook pull --wait
# Stream events as they arrive
simplehook pull --stream
# Check queue status
simplehook statusCommands
simplehook pull
Pull webhook events from the queue.
Options:
-n, --n <count> Number of events to return (1-100)
-p, --path <glob> Filter by path glob (e.g. /stripe/*)
-w, --wait Long-poll: block until an event arrives
-s, --stream SSE stream: print events as they arrive
-t, --timeout <seconds> Timeout for wait/stream (default: 30)
-l, --listener-id <id> Listener ID for cursor tracking
-k, --key <apiKey> API key (or set SIMPLEHOOK_KEY)
--server <url> Server URL (or set SIMPLEHOOK_SERVER)Events are printed as one JSON object per line:
# Pull up to 10 Stripe events
simplehook pull -n 10 --path "/stripe/*"
# Stream all events, piping to jq
simplehook pull --stream | jq '.path'simplehook status
Show queue health, connected listeners, cursor positions, and per-route breakdown.
Options:
--json Output raw JSON
-k, --key <apiKey> API key (or set SIMPLEHOOK_KEY)
--server <url> Server URL (or set SIMPLEHOOK_SERVER)# Pretty-printed status
simplehook status
# Machine-readable JSON
simplehook status --jsonAuthentication
Pass your API key via --key or the SIMPLEHOOK_KEY environment variable. Get your key from the dashboard.
Links
License
MIT
