CLI Guide
@boomin/cli 0.3.0 covers two jobs: getting a project set up, and driving
the live /v1/platform distribution tree without writing code.
npx @boomin/cli --helpnpx @boomin/cli help distributionEvery command supports -h / --help. Agents should prefer --json.
For the exhaustive flag list, see Command Reference.
npx @boomin/cli loginCreates a short-lived login session, opens Boomin in your browser, and waits for approval — the same pattern Wrangler uses. Credentials are granted in the browser, never typed into the terminal.
npx @boomin/cli init --program-name "Launch Entities" --yesinit logs in if needed, selects or creates an organization and program,
ensures a Partner Connect surface exists,
appends local origins, and writes .env.local:
VITE_BOOMIN_PUBLIC_KEY=pk_live_...VITE_BOOMIN_PROGRAM_ID=...VITE_BOOMIN_API_BASE=https://api.boomin.ai/v1/connectPrograms are private by default. Add --list to put yours on the public
Discover feed. Interactive init asks and
defaults to private; non-interactive init never lists.
Useful variants:
npx @boomin/cli init --dry-runnpx @boomin/cli init --origin http://localhost:3000npx @boomin/cli init --program-id prog_...Mint a platform key
Section titled “Mint a platform key”npx @boomin/cli token create \ --name "Quickstart server" \ --scopes org:read,enrollments:read,enrollments:write,distributions:read,distributions:write,distributions:launch,deployments:read,performance:read,performance:write,events:read,webhooks:read,webhooks:write,payouts:read,payouts:write \ --saveThe secret is shown once. See Token Commands and Authentication.
Drive the distribution tree
Section titled “Drive the distribution tree”Seven groups over the live Platform API — distribution, enrollment,
relationship, connection, payout, webhook, events:
npx @boomin/cli enrollment invite --program prog_... --email creator@example.comnpx @boomin/cli enrollment approve enr_...
npx @boomin/cli distribution create --name "Spring launch" --objective launch \ --programs prog_... --budget-mode funded --budget-asset credit --budget-total 50000npx @boomin/cli distribution validate dist_...npx @boomin/cli distribution launch dist_...
npx @boomin/cli webhook create --url https://your-app.com/webhooks/boominnpx @boomin/cli payout export --out payouts.csvlaunch, pause, resume, and cancel are asynchronous — they answer 202
with an operation. The CLI polls the operation to a terminal status by
default; --no-wait returns immediately.
npx @boomin/cli distribution launch dist_... --timeout 300 --poll-interval 5npx @boomin/cli distribution launch dist_... --no-waitScaffolding
Section titled “Scaffolding”npx @boomin/cli referral init --framework next --auth custom --writenpx @boomin/cli handoff provisionreferral init generates the entity join/status routes, the /r/[code]
redirect tracker, and a starter /entity page. handoff provision mints the
program’s signed-handoff secret and writes it
to .env.local (--rotate replaces it).
Doctor
Section titled “Doctor”npx @boomin/cli doctornpx @boomin/cli doctor --json --strictChecks login, env, Connect config, handoff config, and referral-route readiness, and prints a fix command for anything that fails.
Status, scopes, logout
Section titled “Status, scopes, logout”npx @boomin/cli status --jsonnpx @boomin/cli scopesnpx @boomin/cli scopes explain distributions:launchnpx @boomin/cli logoutPlatform smoke
Section titled “Platform smoke”npx @boomin/cli platform smoke --read-only --token sk_boomin_live_...npx @boomin/cli platform smoke --write --cleanup --token sk_boomin_live_...npx @boomin/cli platform smoke --all-scopes --cleanup --json--all-scopes mints a temporary all-scope token when none is passed, executes
every registered scope through the platform scope executor, cleans up with
--cleanup, and revokes the temporary token.