Skip to content

CLI Commands

The Baseline CLI is the primary command-line interface for interacting with the protocol.

Terminal window
baseline <command> [options]

If installed from source:

Terminal window
node packages/cli/dist/cli.js <command> [options]

Start the MCP server. Add --api to also expose the REST API.

Terminal window
baseline serve # MCP server only
baseline serve --api # MCP + REST API
baseline serve --api --port 3141 # Custom port

Verify evidence bundles and audit trails for integrity.

Terminal window
baseline verify --evidence ./evidence.json --audit-trail ./audit.json

Display the agent registry with roles, trust scores, and capabilities.

Terminal window
baseline agents

Run diagnostic checks on the Baseline installation and configuration.

Terminal window
baseline doctor

Print the current Baseline Protocol version.

Terminal window
baseline version

Run the full 7-layer sweep against a project context.

Terminal window
baseline --baseline --context . --mode development

Options:

FlagDescription
--context <path>Project root to analyze
--mode <mode>Execution mode: development, staging, or production

Display help information for all commands.

Terminal window
baseline help
VariablePurpose
ANTHROPIC_API_KEYRequired for LLM-powered execution
BASELINE_OTEL_DISABLED=1Suppress OpenTelemetry output
BASELINE_APPROVAL_SECRETCryptographic token for task approval