Install
You need Node.js 18 or later.Log in
- Works however you sign in to the dashboard: Google, password or two-factor. You never type a password into the terminal.
- On a server with no browser, run
modempay login --no-browserand open the link on any device. - The login lasts 30 days. It’s saved in
~/.modempay-cli-config.json, which only your user can read.
What the CLI can do with your account. When you approve, the CLI gets its own test-mode API key that can only create and read payments, and expires after 30 days. Logging in again replaces it. The CLI’s session can only manage test webhooks. It can’t see live data, send payouts or change settings.
Switch accounts
If your business has more than one account (for example a GMD and a USD account), choose which one to test with:Receive webhooks on your machine
x-modem-signature header arrive unchanged, so your signature check works exactly as it will in production.
listen is running.
Send sample events
listen runs, or your dashboard one.
You can trigger: charge.created, charge.succeeded, charge.failed, charge.cancelled, payment_intent.created, payment_intent.cancelled, customer.created, customer.updated and customer.deleted.
Create test payments
init prints a checkout link you can open and pay in test mode. Add --json to either command to see the raw API response.
