Files
git.stella-ops.org/docs/features/unchecked/cli/policy-scaffolding-cli.md

25 lines
1.2 KiB
Markdown

# 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 minimal` and verify minimal policy created
- [ ] Run with `--template full` and verify comprehensive policy with all gates
- [ ] Run with `--template reachability` and verify reachability-focused policy
- [ ] Run with `--shadow` and verify shadow mode configured
- [ ] Run with `--tags "team:security,env:production"` and verify metadata tags
- [ ] Run with `--init-git` and verify Git repository initialized
- [ ] Run with `--init-fixtures` and verify test fixtures directory created