pingram-cli
v1.0.16
Published
Official Pingram CLI — manage account resources and inspect logs from your terminal
Downloads
320
Maintainers
Readme
Pingram CLI
Official command-line interface for Pingram. Manage domains, send messages, inspect logs, and more from your terminal.
Install
Requires Node.js 18+.
npm install -g pingram-cliOther install options (standalone binary, Homebrew): CLI docs.
Quick start
pingram login
pingram domains listGet your API key and region (us, eu, or ca) from the API Keys page in the Pingram dashboard.
Authentication
Credentials are resolved in this order:
--api-keyglobal flagPINGRAM_API_KEYenvironment variable- Credentials saved by
pingram login(API key in OS secure storage when available, otherwise a local config file)
Region defaults from login and can be overridden with --region or PINGRAM_REGION.
pingram login
pingram login --key pingram_sk_xxx --region us
pingram whoami
pingram logoutpingram login validates your key before saving. pingram whoami reads local config only (no API call).
Run pingram <group> <command> --help for full flags on any command.
Global flags
--api-key <key>— override stored credentials--region <us|eu|ca>— API region--json— force JSON output (default when stdout is not a TTY)
Commands
| Group | Commands |
| ---------- | ------------------------------------------------------------------------------------------------ |
| domains | list, add <sender>, start-verification <sender>, delete <sender> |
| email | send --type --to --subject --html |
| sms | send --type --to [--message] |
| logs | list, tail, get <trackingIds>, retention, query, query-result <queryId> |
| usage | get, history --start-date --end-date |
| numbers | search --country-code, list, order <phoneNumber>, release <phoneNumber>, list-released |
| members | list, remove <userId> |
| webhooks | get, update --webhook --events, delete |
Full command reference with all flags and examples: pingram.io/docs/reference/cli
Examples
pingram domains list
pingram domains add example.com
pingram usage get
pingram usage history --start-date 2025-01-01 --end-date 2025-06-01
pingram logs tail
pingram logs get <tracking-id>
pingram numbers search --country-code US
pingram webhooks update --webhook https://example.com/webhook --events EMAIL_DELIVERED SMS_FAILED
pingram email send \
--type welcome \
--to [email protected] \
--subject "Hello" \
--html "$(cat ./email.html)"
pingram sms send --type otp --to +15551234567 --message "Your code is 123456"