1.2 KiB
1.2 KiB
Policy Scaffolding CLI
Module
Cli
Status
IMPLEMENTED
Description
Create new policy files from templates (minimal, baseline, vex-precedence, reachability, secret-leak, full) with metadata tagging, shadow mode configuration, and optional Git repository/fixtures initialization.
Implementation Details
- Command Group:
src/Cli/StellaOps.Cli/Commands/PolicyCommandGroup.cs-- policy scaffolding commands - Commands:
stella policy new <name>-- create new policy from template. Options:--template minimal|baseline|vex-precedence|reachability|secret-leak|full,--shadow,--tags <tags>,--init-git,--init-fixtures
E2E Test Plan
- Run
stella policy new my-policy --template minimaland verify minimal policy created - Run with
--template fulland verify comprehensive policy with all gates - Run with
--template reachabilityand verify reachability-focused policy - Run with
--shadowand verify shadow mode configured - Run with
--tags "team:security,env:production"and verify metadata tags - Run with
--init-gitand verify Git repository initialized - Run with
--init-fixturesand verify test fixtures directory created