CLI Reference
ConsensusOS provides a CLI for common operations. All commands run locally with zero network egress.
Commands
Section titled “Commands”| Command | Description |
|---|---|
npx consensusos doctor | Run health checks across all registered plugins |
npx consensusos verify | Verify release artifact integrity |
npx consensusos config | Configuration validation, diff, and migration |
npx consensusos status | System status overview |
npx consensusos plugins | List loaded plugins with version and capability info |
npx consensusos adapters | List and query registered chain adapters |
npx consensusos help | Show help message with all available commands |
Examples
Section titled “Examples”Health check
Section titled “Health check”npx consensusos doctorRuns the HealthSentinel plugin’s check routine against all registered nodes, reporting heartbeat status and any detected issues.
Release verification
Section titled “Release verification”npx consensusos verifyUses the ReleaseVerifier plugin to check artifact hashes against expected values.
Configuration management
Section titled “Configuration management”npx consensusos configRuns the ConfigGuardian plugin’s schema validation and reports any configuration drift or migration opportunities.
Config subcommands
Section titled “Config subcommands”The config command accepts subcommands:
npx consensusos config validate # Validate configuration schema (default)npx consensusos config version # Show current config versionnpx consensusos config history # Show config change historySystem status
Section titled “System status”npx consensusos statusShows the number of loaded plugins, their current state (registered/initialized/started/stopped/error), event history count, and registered invariants.
Plugin inspection
Section titled “Plugin inspection”npx consensusos plugins # List all loaded plugins with stateAdapter queries
Section titled “Adapter queries”npx consensusos adapters # List registered chain adaptersnpx consensusos adapters info # Show connection status and chain info| Flag | Description |
|---|---|
--version, -V | Print the ConsensusOS version and exit |
--help | Show the help message (same as help command) |