Skip to main content

Install

Requires Node 20 or later.
Or run it once without installing: npx @horizonpay/invoice-ai-cli invoices list.

Log in

The CLI shows a one-time code and opens your browser. Approve the device there. The CLI gets a new API key for this machine and stores it in your OS keychain.
  • invoice-ai whoami shows the account, key and profile in use.
  • invoice-ai logout revokes the key and forgets it.
  • invoice-ai login --no-browser prints the login URL instead of opening a browser.
  • invoice-ai login --api-key inv_live_... stores an existing key.
  • invoice-ai login --profile work adds another account. Switch with invoice-ai switch work, or pass --profile work to any command.

Everyday commands

Global flags: --json for JSON output, --yes to skip confirmations, --profile to pick an account, --debug to log each request. See the command reference for every command and flag.