CLI
Command-line tools for configuring, debugging, and testing your billing integration.
Installation
# Run directly npx billingsdk <command> # Or install globally npm install -g billingsdk-cli
init
Initialize billing configuration in your project:
npx billingsdk init
doctor
Check your billing configuration for issues:
npx billingsdk doctor
Checks for required environment variables, package.json dependencies, and configuration files.
generate-env
Generate environment variable templates for a specific provider:
npx billingsdk generate-env stripe npx billingsdk generate-env polar npx billingsdk generate-env lemonsqueezy
dev
Start a local webhook inspector to test webhooks during development:
npx billingsdk dev --port 3001 --provider all
Forward webhooks from your provider to this server to inspect payloads in real-time.