# CLI Export Profile and Run Management ## Module Cli ## Status IMPLEMENTED ## Description CLI commands for managing export profiles, triggering export runs, downloading artifacts with hash verification, and scheduling evidence/attestation exports with selectors and callbacks. ## Implementation Details - **Command Group**: `src/Cli/StellaOps.Cli/Commands/ExportCommandGroup.cs` -- `ExportCommandGroup` for `stella export` commands - **Export Configuration**: `src/Cli/StellaOps.Cli/Export/` -- export profile configuration and management - **Command Handlers**: `src/Cli/StellaOps.Cli/Commands/CommandHandlers.ExportCache.cs` -- export cache handlers - **Sprint**: SPRINT_0202_0001_0001_cli_ii - **Commands**: - `stella export profile list` -- list configured export profiles - `stella export profile create` -- create a new export profile with selectors - `stella export run ` -- trigger an export run - `stella export download ` -- download exported artifacts with hash verification - `stella export schedule ` -- schedule recurring exports - **Services**: `src/Cli/StellaOps.Cli/Services/PackClient.cs` / `IPackClient.cs` -- evidence pack management ## E2E Test Plan - [ ] Run `stella export profile list` and verify export profiles displayed - [ ] Run `stella export profile create --name "nightly" --selector "env:production"` and verify profile created - [ ] Run `stella export run nightly` and verify export run triggered with progress output - [ ] Run `stella export download --output ./export/` and verify artifacts downloaded with hash verification - [ ] Run `stella export schedule nightly --cron "0 2 * * *"` and verify schedule configured - [ ] Verify hash verification fails when artifact is tampered - [ ] Verify callback URL is invoked on export completion when configured - [ ] Verify `--format json` provides structured output for automation