2.2 KiB
2.2 KiB
CLI and Automation UX
Module
Cli
Status
IMPLEMENTED
Description
Full CLI with command groups for replay, verdict, air-gap, prove, audit, and feeds operations.
Implementation Details
- Entry Point:
src/Cli/StellaOps.Cli/Program.cs-- CLI application bootstrap - Application:
src/Cli/StellaOps.Cli/CliApplication.cs-- command tree assembly and DI configuration - Command Factory:
src/Cli/StellaOps.Cli/Commands/CommandFactory.cs-- factory for building the full command hierarchy - Key Command Groups (all under
src/Cli/StellaOps.Cli/Commands/):ReplayCommandGroup.cs--stella replayfor deterministic verdict replayVerdictCommandGroup.cs--stella verdictfor verdict inspection and verificationAirGapCommandGroup.cs--stella airgapfor offline/air-gapped operationsProveCommandGroup.cs--stella provefor proof generation and verificationAuditCommandGroup.cs--stella auditfor audit bundle generationFeedsCommandGroup.cs--stella feedsfor advisory feed management (consolidated understella config feeds)
- Output:
src/Cli/StellaOps.Cli/Output/-- output renderer extensions for consistent formatting - Configuration:
src/Cli/StellaOps.Cli/Configuration/-- CLI configuration and bootstrapping - ~18 top-level command groups: scan, release, verify, attest, evidence, policy, vex, reachability, sbom, crypto, config, auth, admin, ci, setup, explain, tools, doctor
E2E Test Plan
- Run
stella --helpand verify top-level command groups are listed with descriptions - Run
stella replay run <digest>and verify replay execution with deterministic output - Run
stella verdict show <digest>and verify verdict details displayed - Run
stella airgap exportand verify offline bundle creation - Run
stella prove generate <digest>and verify proof generation - Run
stella audit bundle <digest>and verify audit package creation - Run
stella config feeds listand verify feed listing - Verify
--format jsonworks across all command groups for automation - Verify
--verboseflag provides additional output across all commands - Verify exit codes follow convention: 0=success, 1=error, 2=block