Skip to main content

stave compare

Compare compliance posture between two frameworks

Usage

stave compare [flags]

Description

Analyze the gap between a baseline framework (e.g. HIPAA) and a target framework (e.g. FedRAMP Moderate). Identifies shared violations (fix once, satisfy both), marginal work (target-only), and free coverage (already passing).

Answers: "What is the marginal cost to adopt framework B given we already comply with framework A?"

Inputs: --from STRING Baseline framework key (required) --to STRING Target framework key (required) --assessment PATH stave apply JSON output (required) --format STRING table (default) | json | markdown

Framework keys: hipaa, nist_800_53_r5, fedramp_moderate, soc2, pci_dss_v4.0, cis_aws_v3.0, gdpr, iso_27001_2022

Exit Codes: 0 Gap analysis produced 2 Invalid input

Flags

FlagTypeDescription
--afterstringAfter assessment path (--mode remediation)
--assessmentstringstave apply JSON output (required)
--beforestringBefore assessment path (--mode remediation)
-f, --formatstringoutput format: table | json | markdown (default: table)
--fromstringbaseline framework key (required)
--modestringComparison mode: remediation
--simulatedstringSimulated output for efficiency comparison
--tostringtarget framework key (required)

Examples

stave compare --from hipaa --to fedramp_moderate \
--assessment findings.json

stave compare --from hipaa --to soc2 \
--assessment findings.json --format markdown