Skip to content

Script Arguments

This page documents the command-line arguments for the main generation scripts.


Generates documentation, configuration profiles, compliance scripts, and DDM components from a baseline.

Terminal window
./scripts/generate_guidance.py [OPTIONS] BASELINE
ArgumentDescription
BASELINEPath to the baseline YAML file (required)
-h, --helpShow help message
-a NAME, --audit_name NAMEName for audit plist and log (defaults to baseline name)
-D, --ddmGenerate DDM components
-l LOGO, --logo LOGOPath to logo file for the guide
-p, --profilesGenerate individual configuration profiles
-P, --consolidated-profileGenerate a single consolidated profile
-r REFERENCE, --reference REFERENCEUse reference ID instead of rule ID
-s, --scriptGenerate the compliance script
-x, --xlsGenerate Excel document
-H HASH, --hash HASHSign profiles with subject key ID

Creates baseline YAML files by collecting rules with matching tags.

Terminal window
./scripts/generate_baseline.py [OPTIONS]
ArgumentDescription
-h, --helpShow help message
-c, --controlsOutput the 800-53 controls covered by the rules
-k KEYWORD, --keyword KEYWORDTag to collect rules containing the tag
-l, --list_tagsList available keyword tags
-t, --tailorCustomize baseline with organization values

Creates SCAP 1.4 datastream, XCCDF, and OVAL documents.

Terminal window
./scripts/generate_scap.py [OPTIONS]
ArgumentDescription
-h, --helpShow help message
-x, --xccdfGenerate XCCDF file only
-o, --ovalGenerate OVAL file only
-l, --list_tagsList available keyword tags
-b BASELINE, --baseline BASELINEGenerate for a specific baseline
-d FILE, --disastig FILEInclude DISA STIG references from file

Creates custom rules and baselines for unsupported compliance frameworks.

Terminal window
./scripts/generate_mapping.py [OPTIONS] CSV_FILE
ArgumentDescription
CSV_FILEPath to CSV mapping file (required)
-h, --helpShow help message
-f FRAMEWORK, --framework FRAMEWORKSource framework to map from (default: 800-53r5)