Aller au contenu principal

Ikawaari CLI (ikw)

The Ikawaari CLI lets you interact with the Ikawaari API directly from your terminal. Create payments, manage webhooks, trigger sandbox events, and more — all without leaving your shell.

Installation

npm install -g @ikawaari/ikw

Verify the installation:

ikw --help

Quick Start

# 1. Authenticate with your API key
ikw auth login:manual --api-key ik_test_your_key_here

# 2. Create a payment
ikw payments create --amount 5000 --currency XOF

# 3. List recent payments
ikw payments list --limit 5

# 4. Listen for webhooks locally
ikw webhooks listen --port 4242

Global Options

Every command supports these flags:

FlagDescription
--jsonMachine-readable JSON output (ideal for scripting)
--dry-runPrint the API request without executing it
--debugEnable debug logs
--tracePrint full API request/response details (redacted)
--request-idPrint the Ikawaari-Request-Id response header
--idempotency-key <key>Set Idempotency-Key header for mutating requests

JSON output

All commands support --json for machine-readable output, making it easy to pipe into jq or other tools:

ikw payments list --limit 3 --json | jq '.data[].id'

Dry run

Preview the API request without sending it:

ikw payments create --amount 5000 --currency XOF --dry-run

Command Groups

CommandDescription
authAuthentication and credentials
configCLI configuration (projects, environments)
paymentsCreate, list, inspect, confirm, cancel, refund payments
customersManage customers
webhooksManage webhook endpoints + local listener
payoutsCreate and manage payouts
invoicesCreate and manage invoices
subscriptionsManage subscriptions
productsManage products and prices
sandboxTrigger sandbox test events
eventsList and inspect events
balancesView account balances
api-keysManage API keys
checkoutManage checkout sessions
payment-linksManage payment links
radarRadar fraud detection
reportingReports and exports
teamTeam management
settingsMerchant settings
complianceCompliance and KYC
opsOperator / admin commands
healthPlatform health checks

Next Steps