plainrouter command. Every API command delegates to the matching operation in @plainrouter/sdk.
The current npm release is 0.5.0 and uses @plainrouter/sdk 0.5.0. Review release notes before upgrading while the CLI remains in the 0.x series.
CLI
0.5.0 can create events with the current consent contract. It does not expose an ingestion-verification command; use the TypeScript, Python, or Go SDK, direct REST, or MCP for that operation.Requirements
- Node.js
22.22.2or later in the Node 22 release line. - A per-Signal tracker secret.
Install with Homebrew
Install from the officialplainrouter/homebrew-tap:
Install with npm
Sign in with a tracker token
Run the interactive login command:$XDG_CONFIG_HOME/plainrouter/config.json. When XDG_CONFIG_HOME is unset, it uses ~/.config/plainrouter/config.json.
The CLI creates the directory with mode 0700 and the configuration file with mode 0600.
Check the active credential without printing it:
Run your first command
List recent events and delivery metrics:--json, the CLI prints a human-readable summary or table.
Use an environment variable
For CI or an ephemeral shell, inject the token through your secret manager:PLAINROUTER_TOKEN takes precedence over a stored token. The CLI intentionally has no --token option, which helps keep credentials out of shell history and process listings.