Skip to content

CLI Reference

ConsensusOS provides a CLI for common operations. All commands run locally with zero network egress.

CommandDescription
npx consensusos doctorRun health checks across all registered plugins
npx consensusos verifyVerify release artifact integrity
npx consensusos configConfiguration validation, diff, and migration
npx consensusos statusSystem status overview
npx consensusos pluginsList loaded plugins with version and capability info
npx consensusos adaptersList and query registered chain adapters
npx consensusos helpShow help message with all available commands
Terminal window
npx consensusos doctor

Runs the HealthSentinel plugin’s check routine against all registered nodes, reporting heartbeat status and any detected issues.

Terminal window
npx consensusos verify

Uses the ReleaseVerifier plugin to check artifact hashes against expected values.

Terminal window
npx consensusos config

Runs the ConfigGuardian plugin’s schema validation and reports any configuration drift or migration opportunities.

The config command accepts subcommands:

Terminal window
npx consensusos config validate # Validate configuration schema (default)
npx consensusos config version # Show current config version
npx consensusos config history # Show config change history
Terminal window
npx consensusos status

Shows the number of loaded plugins, their current state (registered/initialized/started/stopped/error), event history count, and registered invariants.

Terminal window
npx consensusos plugins # List all loaded plugins with state
Terminal window
npx consensusos adapters # List registered chain adapters
npx consensusos adapters info # Show connection status and chain info
FlagDescription
--version, -VPrint the ConsensusOS version and exit
--helpShow the help message (same as help command)