@duabalabs/sellub-cli
sellub — command-line tool for operators. Useful for one-off catalog
imports, channel inspections and subscription debugging.
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 helpCommands
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_checkConfiguration
The CLI looks for credentials in this order:
--api-url,--api-keyflags- Environment variables:
SELLUB_API_URL,SELLUB_API_KEY ~/.sellub/config.jsonwritten bysellub login(v0.2)
export SELLUB_API_URL=https://api.sellub.com
export SELLUB_API_KEY=sk_live_…
sellub channels listExamples (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 duabantiWhy 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.
Related
sellub-client— the underlying typed client. The CLI is a thin wrapper that prints results.- DPS API — the subscription endpoint
subscriptions checkwill call.