Skip to main content

Installation

After installing, both paybridgenp and paybridge-np are available as aliases.

Authentication

paybridgenp login

Authenticate with your API key. You can find your keys in the dashboard under Settings → API Keys.
The CLI prompts for your key interactively. For CI/scripts, pass it directly:
Or set the environment variable to skip login entirely:
The PAYBRIDGENP_API_KEY environment variable always takes priority over the saved config. Config is stored at:
  • macOS/Linux: ~/.config/paybridgenp/config.json
  • Windows: %APPDATA%\paybridgenp\config.json
The file is written with 0600 permissions - readable only by you.

paybridgenp status

Show the current authentication state and API connection.

Payments

paybridgenp payments list

List recent payments in a table.

paybridgenp payments get <id>

Fetch a single payment with full detail.

Webhooks

paybridgenp webhooks list

List all registered webhook endpoints for the current project.

paybridgenp webhooks listen

Start a local HTTP server and expose it via an ngrok tunnel. Use this during development to receive real webhook events on your machine.
ngrok must be installed. Install it with brew install ngrok or from ngrok.com.

paybridgenp webhooks test <url>

Send a fake signed event to any URL to test your webhook handler.
Supported event types:

Testing

paybridgenp test

Create a real sandbox checkout session and open it in the browser. Complete a test payment end-to-end without writing any code.
If you run paybridgenp test with a live key (sk_live_...), the CLI will warn you and require explicit confirmation before creating a real checkout.

Scaffolding

paybridgenp init

Interactively scaffold a starter project with working checkout and webhook routes.
What gets created:

Updates

paybridgenp update

Check if a newer version is available on npm.

Global flags

These flags work with every command:

Configuration reference