npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@shegerpay/cli

v1.4.0

Published

ShegerPay CLI — verify Ethiopian payments, manage payment links and webhooks. Connect with one approval, no API key to paste.

Readme

ShegerPay CLI

Official command-line interface for ShegerPay - The African Payment Gateway. Manage payments, crypto, PayPal, webhooks, and your account from the terminal.

Installation

npm install -g @shegerpay/cli

Quick Start

  1. Get your API key from shegerpay.com/dashboard/settings/api-keys

  2. Configure the CLI:

shegerpay config set sk_test_your_api_key_here
  1. Start using ShegerPay:
shegerpay verify payment FT241227ABC123 --amount 500

Commands

Configuration

# Set your API key
shegerpay config set <api-key>

# Show current configuration
shegerpay config get

# Clear all configuration
shegerpay config clear

Payment Verification

# Verify Ethiopian bank payment
shegerpay verify payment <transaction-id> [options]
  -a, --amount <amount>      Expected payment amount
  -p, --provider <provider>  Provider (cbe, telebirr, awash, boa, ebirr)
  -j, --json                 Output as JSON

# Quick verify (auto-detect provider)
shegerpay verify quick <transaction-id>

# Get payment history
shegerpay verify history [options]
  -l, --limit <limit>        Maximum results (default: 50)
  -p, --provider <provider>  Filter by provider
  -s, --status <status>      Filter by status
  -j, --json                 Output as JSON

Examples:

shegerpay verify payment FT241227ABC123 --amount 500 --provider cbe
shegerpay verify quick TB123456789
shegerpay verify history --limit 20 --status verified

Cryptocurrency

# Get current crypto prices
shegerpay crypto prices

# Create crypto payment
shegerpay crypto create [options]
  -a, --amount <amount>      Payment amount (required)
  -c, --currency <currency>  Fiat currency (required)
  --crypto <crypto>          Crypto currency (required)
  -e, --email <email>        Customer email
  -j, --json                 Output as JSON

# Verify crypto payment
shegerpay crypto verify <reference> <tx-hash>

Examples:

shegerpay crypto prices
shegerpay crypto create -a 100 -c USD --crypto USDT_TRC20
shegerpay crypto verify ref_abc123 0x123abc...

Payment Links

# Create payment link
shegerpay links create [options]
  -t, --title <title>        Link title (required)
  -a, --amount <amount>      Payment amount (required)
  -c, --currency <currency>  Currency (default: ETB)
  -d, --description <desc>   Description
  -j, --json                 Output as JSON

# List payment links
shegerpay links list [options]
  -l, --limit <limit>        Maximum results
  -s, --status <status>      Filter by status
  -j, --json                 Output as JSON

# Get link analytics
shegerpay links analytics <link-id>

# Delete payment link
shegerpay links delete <link-id>

Examples:

shegerpay links create -t "Product Invoice" -a 1000 -c ETB
shegerpay links list --status active
shegerpay links analytics link_abc123
shegerpay links delete link_abc123

Webhooks

# Create webhook
shegerpay webhooks create <url> [options]
  -e, --events <events...>   Event types (required)
  -d, --description <desc>   Description
  -j, --json                 Output as JSON

# List webhooks
shegerpay webhooks list

# Test webhook
shegerpay webhooks test <url> <event>

# Delete webhook
shegerpay webhooks delete <webhook-id>

# List available events
shegerpay webhooks events

Examples:

shegerpay webhooks create https://myapp.com/webhook -e payment.verified refund.created
shegerpay webhooks list
shegerpay webhooks test https://myapp.com/webhook payment.verified
shegerpay webhooks events

Wallet Management

# Get wallet balances
shegerpay wallet balance

# Convert currency
shegerpay wallet convert [options]
  -f, --from <currency>      Source currency (required)
  -t, --to <currency>        Target currency (required)
  -a, --amount <amount>      Amount to convert (required)
  -j, --json                 Output as JSON

Examples:

shegerpay wallet balance
shegerpay wallet convert -f USD -t ETB -a 100

Transactions

# List transaction history
shegerpay transactions list [options]
shegerpay tx list [options]  # Alias
  -l, --limit <limit>        Maximum results (default: 50)
  -s, --status <status>      Filter by status
  -p, --provider <provider>  Filter by provider
  -j, --json                 Output as JSON

Examples:

shegerpay tx list --limit 50 --status verified
shegerpay transactions list --provider cbe

API Keys

# Generate new API key
shegerpay keys generate <mode> [options]
  Mode: test or live
  -n, --name <name>          Key name/description
  -j, --json                 Output as JSON

# List all API keys
shegerpay keys list

# Revoke API key
shegerpay keys revoke <key-id>

Examples:

shegerpay keys generate test --name "Development"
shegerpay keys list
shegerpay keys revoke key_abc123

Account

# Get subscription status
shegerpay account subscription

# Get API usage statistics
shegerpay account usage

Examples:

shegerpay account subscription
shegerpay account usage

Payouts

# Request payout
shegerpay payouts request [options]
  -a, --amount <amount>      Payout amount (required)
  -c, --currency <currency>  Currency code (required)
  -d, --destination <id>     Destination ID (required)
  -m, --method <method>      Method: bank, crypto, mobile (required)
  -j, --json                 Output as JSON

# List payouts
shegerpay payouts list [options]
  -l, --limit <limit>        Maximum results
  -s, --status <status>      Filter by status
  -j, --json                 Output as JSON

Examples:

shegerpay payouts request -a 5000 -c ETB -d dest_123 -m bank
shegerpay payouts list --status pending

Global Options

-j, --json    Output results as JSON (available on most commands)
-h, --help    Display help for command
-V, --version Display version number

Environment Variables

Instead of storing your API key in the CLI configuration, you can use environment variables:

export SHEGERPAY_API_KEY=sk_test_your_api_key_here
export SHEGERPAY_BASE_URL=https://api.shegerpay.com  # Optional

API Key Modes

ShegerPay supports two modes:

  • Test Mode (sk_test_...): Use for testing without real money
  • Live Mode (sk_live_...): Use for production payments

The CLI automatically detects the mode from your API key.

Output Formats

Table Format (Default)

Most commands display results in a formatted table:

shegerpay transactions list

JSON Format

Add -j or --json to any command for JSON output:

shegerpay transactions list --json

Aliases

Some commands have shorter aliases:

  • shegerpay → sp
  • shegerpay transactions → shegerpay tx
sp tx list
sp verify quick FT123456

Examples

Complete Payment Verification Workflow

# 1. Configure your API key
shegerpay config set sk_test_abc123

# 2. Verify a payment
shegerpay verify payment FT241227ABC123 --amount 500 --provider cbe

# 3. Check payment history
shegerpay verify history --limit 10

# 4. Create webhook for notifications
shegerpay webhooks create https://myapp.com/webhook -e payment.verified

# 5. Check wallet balance
shegerpay wallet balance

Crypto Payment Workflow

# 1. Check crypto prices
shegerpay crypto prices

# 2. Create crypto payment
shegerpay crypto create -a 100 -c USD --crypto USDT_TRC20 -e [email protected]

# 3. Customer sends crypto, you verify with transaction hash
shegerpay crypto verify ref_abc123 0x123abc...

Payment Link Workflow

# 1. Create payment link
shegerpay links create -t "Product A" -a 1500 -c ETB -d "Premium product"

# 2. Share link with customer (displays QR code)

# 3. Check analytics
shegerpay links analytics link_abc123

# 4. List all links
shegerpay links list

Troubleshooting

"Error: No API key configured"

Solution: Set your API key:

shegerpay config set sk_test_your_key

Or use environment variable:

export SHEGERPAY_API_KEY=sk_test_your_key

"API Error: Unauthorized"

Solution: Your API key may be invalid or revoked. Generate a new one:

shegerpay keys generate test

"Connection Error"

Solution: Check your internet connection and verify the API URL:

shegerpay config get

Development

Local Development

# Clone repository
git clone https://github.com/shegerpay/shegerpay-cli.git
cd shegerpay-cli

# Install dependencies
npm install

# Build
npm run build

# Test locally
node dist/index.js --help

Publishing

npm version patch  # or minor, major
npm publish

Support

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

License

MIT License - see LICENSE for details

About ShegerPay

ShegerPay is the leading payment gateway for African businesses, providing seamless payment verification for:

  • 🇪🇹 Ethiopian banks (CBE, Telebirr, Awash, BoA, E-Birr)
  • 🌍 International payments (PayPal, Wise, Payoneer, Bank transfers)
  • ₿ Cryptocurrency (USDT, ETH, BNB, TRX on multiple networks)

Join thousands of businesses using ShegerPay to accept payments from anywhere in the world.


Made with ❤️ by the ShegerPay Team