@parium.ai/cli
v0.1.0-alpha.7
Published
Parium terminal client for chaos room handoff and shared incident sessions
Readme
Parium CLI Preview
This directory contains the isolated chaos-mode terminal client.
Scope
- browser-to-terminal handoff only
- chaos room / collaborative sessions only
- no scored browser assessments
- preview packaging only
Install for internal preview
npm install -g ./cli/pariumInstall from npm
After publishing:
npm install -g @parium.ai/cli@latestPrimary commands:
parium open
parium status
parium doctor
parium versionopen resolves a handoff token and attaches to the live terminal session.
status resolves a handoff token without attaching.
doctor checks the local terminal and server reachability.
version prints CLI/runtime metadata.
While parium open is waiting in the lobby:
- both engineers can see join state directly in the terminal
- Engineer A can press
Sto start the shared room once Engineer B has joined - live attach also surfaces partner connect/disconnect notices inline
Handoff token flow
Token sources are checked in this order:
- positional argument
PARIUM_HANDOFF- clipboard (interactive terminals only, with confirmation)
- stdin or interactive prompt
Accepted formats:
raw-token-string
parium://open?token=...
https://parium.ai/...?...token=...Examples:
parium open parium://open?token=abc123
PARIUM_HANDOFF=parium://open?token=abc123 parium open
printf '%s\n' 'parium://open?token=abc123' | parium status --jsonRun without installing
node cli/parium/bin/parium.js openServer requirements
- The server must have
CLI_HANDOFF_SECRETconfigured. https://parium.aiis the default base URL.- Use
--base-urlonly when targeting staging, local, or a custom deployment. The base URL is the source of truth for both:POST /api/cli/handoff/resolve- websocket attach at
/ws?session=...
That is intentional. It keeps the CLI aligned with the exact host/path the operator chose, which matters for staging, local reverse proxies, and future multi-host deployments.
Folder layout
bin/entrypointspackage.jsonpackage metadata andpariumbin declarationlib/api.jshandoff resolution and connectivity checkslib/ui/terminal presentation layerlib/terminalAttach.jswebsocket-to-stdin/stdout bridgelib/commands/CLI command orchestrationlib/util/token, clipboard, JSON, and terminal helpers
The prototype intentionally lives outside the main app runtime so terminal-client concerns stay isolated.
Themes
dark- Default dark theme with green accents (recommended)light- Light background theme for bright environmentsmono- Monochrome fallback for basic terminals
Switch themes via CLI flag or environment variable:
parium open --theme lightPARIUM_CLI_THEME=mono parium openNote: parium and midnight are aliases for dark for backwards compatibility.
The CLI will automatically fall back to mono when the local terminal looks too weak for the richer UI.
Environment
PARIUM_CLI_THEME=dark
PARIUM_CLI_FORCE_MONO=1
NO_COLOR=1
CLICOLOR_FORCE=1PARIUM_HANDOFF is also supported, but for normal use the recommended flow is still:
parium openthen accept the clipboard token prompt.
