0.2.1 • Published 5 months ago

@jkitsao/dhcli v0.2.1

Weekly downloads
-
License
-
Repository
-
Last release
5 months ago

@jkitsao/dhcli

DevHooks CLI for forwarding and testing webhooks locally — without setting up ngrok.

A simple, developer-friendly CLI tool for simulating and forwarding webhooks to your local server. Great for testing M-Pesa, Paystack, or any other webhook-based integrations.


✨ Features

  • 🔁 Forward webhook events to local/staging endpoints
  • 📡 Listen for real-time events from the DevHooks dashboard
  • 🔧 Designed for mobile money, payments, and API testing
  • 🛠 Works out of the box — no tunnels or ngrok needed

📦 Installation

npm install -g @jkitsao/dhcli
Or use with `npx`:

npx @jkitsao/dhcli


🚀 Usage

Forward a webhook to your local endpoint

dhcli forward <ref> --target http://localhost:3000/api/webhook

  • ref: The unique webhook reference from your DevHooks dashboard

  • --target: Your local or remote URL to forward to

Example:

dhcli forward abc123 --target http://localhost:4000/api/payment


2. Real-Time Events (Preview)

When connected to the DevHooks backend, dhcli listens to real-time webhook events triggered via the dashboard or simulator. These events will be forwarded to the specified target automatically.

This requires:

  • The webhook ref to be active in the DevHooks dashboard

  • A listener CLI session running


3. CLI Help

To view available commands and options:

bash

CopyEdit

dhcli --help


4. Advanced (Coming Soon)

  • Simulate traffic: Trigger 50+ webhook hits to test performance

  • Trigger flows: Chain webhook → email → SMS

  • Mock runners: Use predefined M-Pesa and Paystack events


Need help? Contact @jkitsao or open an issue.

0.2.1

5 months ago

0.2.0

5 months ago

0.1.3

5 months ago

0.1.2

5 months ago

0.1.1

5 months ago

0.1.0

5 months ago