CLI
Command-line interface for managing consensus jobs, boards, audit, and configuration.
Overview
@consensus-tools/cli manages consensus jobs, boards, and configuration from the command line. Connects to a consensus-tools server via @consensus-tools/sdk-client.
For the full command reference, see the CLI Reference.
Installation
Or run without installing:
Quick start
Commands
Job lifecycle
Explain & audit
For full documentation on these commands, see explain and audit.
Board and config
Programmatic API
Exports reference
| Export | Kind | Description |
|---|---|---|
buildProgram() | Function | Returns a Commander Command with all CLI commands |
loadCliConfig() / saveCliConfig(cfg) | Function | Read/write CLI configuration |
getConfigValue(cfg, key) / setConfigValue(cfg, key, val) | Function | Dot-path config access |
parseValue(raw) | Function | Parse a raw string into a typed value |
resolveRemoteBaseUrl(url, boardId) | Function | Build the full remote API URL |
defaultConsensusCliConfig | Const | Default config object |
renderTable(rows, columns) | Function | Format tabular output |
ConsensusCliConfig | Type | CLI configuration object type |
ColumnDef | Type | Column definition for renderTable |
Environment variables
| Variable | Description |
|---|---|
CONSENSUS_AGENT_ID | Override agent identity |
CONSENSUS_API_KEY | Access token for remote board |
Related
- CLI Reference -- full command documentation
- sdk-client -- HTTP client this package uses to call the board
- sdk-node -- server that this CLI connects to