Skip to content

Latest commit

 

History

History
48 lines (31 loc) · 1.18 KB

File metadata and controls

48 lines (31 loc) · 1.18 KB

NPM package

@bitrefill/cli

Browse, buy, and manage gift cards, mobile top-ups, and eSIMs from the command line.

The CLI connects to the Bitrefill MCP server and dynamically discovers available tools, exposing each as a subcommand with typed options.

Install

npm install -g @bitrefill/cli

Usage

bitrefill <command> [options]

On first run, the CLI will open your browser for OAuth authorization. Credentials are stored in ~/.config/bitrefill-cli/.

Examples

# Search for products
bitrefill search-products --query "Netflix"

# Get product details
bitrefill get-product-details --product_id "steam-usa" --currency USDC

# Buy a product
bitrefill buy-products --cart_items '{"product_id": "steam-usa", "package_id": 10}' --payment_method usdc_base

# List your orders
bitrefill list-orders

# List available commands
bitrefill --help

# Clear stored credentials
bitrefill logout

Legal