CLI Guide
Boomin ships the browser SDK as @boomin/connect and the CLI as @boomin/cli.
npx @boomin/cli --helpEvery command supports -h and --help.
npx @boomin/cli loginThe CLI creates a short-lived login session, opens Boomin in your browser, and waits for approval. This is the same pattern used by tools like Wrangler: credentials are granted in the browser, not typed into the terminal.
npx @boomin/cli initinit logs in if needed, selects or creates an organization and creator program, ensures a Creator Connect public key exists, appends local origins, and writes .env.local.
Useful flags:
npx @boomin/cli init --yesnpx @boomin/cli init --dry-runnpx @boomin/cli init --origin http://localhost:3000npx @boomin/cli init --program-name "Launch Creator Program"npx @boomin/cli init --list--list lists the program on Boomin Connect’s public Discover feed. Without the flag, interactive init asks and defaults to private; a non-interactive init never lists.
Referral scaffold and handoff
Section titled “Referral scaffold and handoff”npx @boomin/cli referral init --framework next --auth custom --writenpx @boomin/cli handoff provisionreferral init generates the partner join/status routes, the /r/[code] redirect tracker, and a starter /partner page. handoff provision mints the program’s handoff signing secret and writes it to .env.local (--rotate mints a new one and invalidates the old).
Doctor
Section titled “Doctor”npx @boomin/cli doctornpx @boomin/cli doctor --jsondoctor checks login, env, handoff config, and referral-route readiness, and prints a fix command for anything that fails.
Status and logout
Section titled “Status and logout”npx @boomin/cli statusnpx @boomin/cli status --jsonnpx @boomin/cli logoutScopes
Section titled “Scopes”npx @boomin/cli scopesnpx @boomin/cli scopes --jsonnpx @boomin/cli scopes explain units:createPlatform 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 --jsonAgents should prefer --json when they need machine-readable output.
--all-scopes creates a temporary all-scope token when no token is passed, executes every V1 scope through the Platform scope executor, cleans up created smoke objects when --cleanup is present, and revokes the temporary token.