Skip to Content
SellubSDKssellub-cli

@duabalabs/sellub-cli

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

npm

Status: 0.2.0 — login, doctor, channels list and subscriptions check are wired to the Sellub Admin API and DPS. Catalog import is planned.

Install

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

Commands

sellub help sellub version sellub login Configure server URL + tokens (writes ~/.sellub/config.json) Flags: --server-url --admin-token --dps-server-url --dps-app-id --dps-master-key --yes sellub doctor Environment and connectivity smoke tests sellub channels list List Vendure channels (needs an admin token) sellub subscriptions check <email> [--app <appId>] Check subscription status via DPS

Configuration

Run sellub login once. It writes ~/.sellub/config.json (mode 0600) with the Sellub server URL, an admin token, and the DPS details subscriptions check uses. Every command reads that file; there are no environment-variable overrides.

sellub login --server-url https://api.sellub.com --admin-token <token> sellub doctor sellub channels list

Planned

# Import products from a CSV (dry-run first) sellub catalog import products.csv --dry-run

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.
Last updated on