CLI
The bizzle CLI talks to the same /v1 API using a secret key stored in
~/.bizzle/config.json.
Install
Section titled “Install”The CLI ships in the Bizzle repository (cli/index.mjs) as a dependency-free Node
script. From a checkout:
npm link # exposes the `bizzle` binaryLog in
Section titled “Log in”bizzle login --api-key sk_test_yourkeyOptionally point at another environment with --base-url. The default base URL is
https://api.bizzle.my/v1.
Commands
Section titled “Commands”| Command | Description |
|---|---|
bizzle login --api-key <key> |
Save credentials to ~/.bizzle/config.json |
bizzle whoami |
Verify credentials and print balance |
bizzle logs [--limit N] |
Show recent /v1 requests |
bizzle replay <delivery-id> |
Replay a webhook delivery |
bizzle trigger <event-type> [--data '{…}'] |
Send a test webhook event |
bizzle pay --amount <n> [--currency TZS] [--description "…"] |
Create a payment |
bizzle config |
Print config path and masked key |
bizzle help |
Usage |
Global options: --api-key <key>, --base-url <url>.
Example
Section titled “Example”bizzle login --api-key sk_test_abcbizzle pay --amount 50000 --description "Order #1042"bizzle logs --limit 10bizzle trigger payment.succeeded --data '{"amount":50000}'