SellubSDKssellub-cli

@duabalabs/sellub-cli

sellub — command-line tool for operators. Useful for one-off catalog imports, channel inspections and subscription debugging.

npm

Status: v0.1 ships the CLI shell and command surface. Subcommand bodies are stubbed and will be wired to the Sellub Admin API + DPS subscriptions API in v0.2. Track package-status.

Install

pnpm add -g @duabalabs/sellub-cli
# or
npx @duabalabs/sellub-cli help

Commands

sellub help
sellub version

sellub channels list                       List Vendure channels for the configured tenant
sellub catalog import <file.csv>           Bulk-import products from a CSV
sellub subscriptions check <email> --app <appId>
                                           Check subscription status via dps_subscriptions_check

Configuration

The CLI looks for credentials in this order:

  1. --api-url, --api-key flags
  2. Environment variables: SELLUB_API_URL, SELLUB_API_KEY
  3. ~/.sellub/config.json written by sellub login (v0.2)
export SELLUB_API_URL=https://api.sellub.com
export SELLUB_API_KEY=sk_live_…
sellub channels list

Examples (planned)

# List every channel you can administer
sellub channels list
 
# Import 500 products from a CSV (dry-run first)
sellub catalog import products.csv --dry-run
sellub catalog import products.csv
 
# Check whether a customer's DPS subscription is active
sellub subscriptions check ada@example.com --app duabanti

Why a CLI?

Operators sometimes need to do things the dashboard doesn’t surface fast enough — bulk imports, ad-hoc subscription queries, smoke tests against a new environment. The CLI gives those workflows an interface that’s scriptable and CI-friendly without reaching for curl.

  • sellub-client — the underlying typed client. The CLI is a thin wrapper that prints results.
  • DPS API — the subscription endpoint subscriptions check will call.