Webhook Wizard CLI
The command line for debugging your webhooks.
Usage
Forwarding webhooks to a private url
The forward
command forwards webhook requests from a webhook wizard url to any other url. You can use this to see a log of requests or to test webhook requests locally before you have a publicly accessible url for your webhook.
npx -y @webhookwizard/cli forward <destination>
Forward webhooks from the internet to a destination.
For example..
npx -y @webhookwizard/cli forward http://localhost:8080
forwarding from https://webhookwizard.com/api/webhook/in/2d9efe86-ed0c-4cdf-bf0c-4d8197e632dc to http://localhost:8080
listening for messages to forward
Traffic flow
Messages are sent over a websocket tunnel in the cli. Forwarding messages will work without your dev machine being directly accessible on the internet and will work behind a firewall.
graph LR
A[webhookwizard.com] -->B{CLI}
B --> C[destination]
Listen to and log requests
Listen to http requests and logs them, so you can see the headers and the request body.
npx -y @webhookwizard/cli listen
for example..
npx -y @webhookwizard/cli listen
2022-08-28T05:36:31.176Z /incomming
Host: localhost:8080
User-Agent: curl/7.79.1
Accept: */*
Content-Length: 16
Content-Type: application/x-www-form-urlencoded
👋 hello world
Dev Usage
npm run build-watch
./build/cli.js
Publishing
npm version --git-tag-version=false patch
git add package.json package-lock.json
git commit -m "release @webhookwizard/cli"