CLI Commands
The Baseline CLI is the primary command-line interface for interacting with the protocol.
baseline <command> [options]If installed from source:
node packages/cli/dist/cli.js <command> [options]Commands
Section titled “Commands”baseline serve
Section titled “baseline serve”Start the MCP server. Add --api to also expose the REST API.
baseline serve # MCP server onlybaseline serve --api # MCP + REST APIbaseline serve --api --port 3141 # Custom portbaseline verify
Section titled “baseline verify”Verify evidence bundles and audit trails for integrity.
baseline verify --evidence ./evidence.json --audit-trail ./audit.jsonbaseline agents
Section titled “baseline agents”Display the agent registry with roles, trust scores, and capabilities.
baseline agentsbaseline doctor
Section titled “baseline doctor”Run diagnostic checks on the Baseline installation and configuration.
baseline doctorbaseline version
Section titled “baseline version”Print the current Baseline Protocol version.
baseline versionbaseline --baseline
Section titled “baseline --baseline”Run the full 7-layer sweep against a project context.
baseline --baseline --context . --mode developmentOptions:
| Flag | Description |
|---|---|
--context <path> | Project root to analyze |
--mode <mode> | Execution mode: development, staging, or production |
baseline help
Section titled “baseline help”Display help information for all commands.
baseline helpEnvironment variables
Section titled “Environment variables”| Variable | Purpose |
|---|---|
ANTHROPIC_API_KEY | Required for LLM-powered execution |
BASELINE_OTEL_DISABLED=1 | Suppress OpenTelemetry output |
BASELINE_APPROVAL_SECRET | Cryptographic token for task approval |