@baselineos/cli
v1.5.0
Published
Baseline Protocol - Command Line Interface
Readme
@baselineos/cli
Command-line interface for Baseline Protocol. Provides the baseline binary with commands for guided runs, full workflow execution, onboarding, evidence verification, badge generation, and schema export. Orchestrates all layer packages into a single operator surface.
Primary Exports
| Export | Kind | Description |
|---|---|---|
| BaselineCommandSystem | class | Command parser and workflow executor |
| MEGAGEMCoreSystem | class | Autonomous agent runtime for the CLI |
| MEGAGEMAutonomousAgent | class | Agent instance with project-scoped autonomy |
CLI Commands
| Command | Description |
|---|---|
| baseline --baseline | Run the full layer workflow |
| baseline --onboard | Interactive onboarding flow |
| baseline --status | System status |
| baseline verify | Verify an evidence bundle integrity and policy compliance |
| baseline badge | Generate a compliance badge |
| baseline schema | Export JSON schema |
Usage
# Install globally or use via pnpm
pnpm --filter @baselineos/cli build
# Run a full workflow
baseline --baseline --context ./project --mode production --input ./in --output ./out
# Verify evidence
baseline verify --evidence ./evidence.jsonProgrammatic
import { BaselineCommandSystem } from '@baselineos/cli';
const system = new BaselineCommandSystem();
const result = await system.executeCommand('--status');Integration
- Depends on: all layer packages +
baselineos - Binary entrypoint:
dist/cli.js
pnpm --filter @baselineos/cli build
pnpm --filter @baselineos/cli test