CLI Tool
Theopenpay CLI lets you manage payments, webhooks, and configuration directly from your terminal.
Installation
- Go Install
- Download Binary
Authentication
Log in with your API credentials. The CLI stores them locally in~/.openpay/config.yaml.
Configuration
Manage CLI settings withopenpay config:
| Setting | Default | Description |
|---|---|---|
api_url | https://olp-api.nipuntheekshana.com | API base URL |
output | table | Output format: table, json, or yaml |
api_key | (none) | Your API key |
api_secret | (none) | Your API secret (stored securely) |
Payments
List Payments
Create a Payment
Get Payment Details
Webhooks
Configure a Webhook
List Webhook Deliveries
Test a Webhook
Send a test event to your configured endpoint:Checkout Sessions
Create a Checkout Session
Global Flags
These flags work with any command:| Flag | Short | Description |
|---|---|---|
--output | -o | Output format: table, json, yaml |
--verbose | -v | Enable verbose logging |
--help | -h | Show help for any command |
--version | Show CLI version |
Shell Completion
Generate shell completion scripts:- Bash
- Zsh
- Fish