Skip to content

Script Arguments

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


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

Terminal window
./mscp.py guidance [OPTIONS] BASELINE
Argument Description
BASELINE Path to the baseline YAML file (required)
-A, --all Generate all outputs
-s, --script Generate the compliance script
-p, --profiles Generate individual configuration profiles
--consolidated-profile Generate a single consolidated profile
--granular-profiles Generate granular per-setting profiles
-d, --ddm Generate DDM components
-x, --xlsx Generate Excel spreadsheet
-M, --manifest Generate a JSON manifest file for the rules in the baseline
-m, --markdown Generate Markdown documentation
-l LOGO, --logo LOGO Path to logo file for the guide
-L LANG, --language LANG Language for output
-H HASH, --hash HASH Sign profiles with subject key ID
--audit_name NAME Name for audit plist and log
--reference REF Use reference ID instead of rule ID
--dark Dark mode output

Creates baseline YAML files by collecting rules with matching tags.

Terminal window
./mscp.py baseline [OPTIONS]
Argument Description
-k KEYWORD, --keyword KEYWORD Tag to collect rules containing the tag
-l, --list_tags List available keyword tags and benchmarks
-t, --tailor Customize baseline with organization values
-c, --controls Output the 800-53 controls covered by the rules
--os_name NAME Target OS name
--os_version VERSION Target OS version

Creates SCAP 1.4 datastream, XCCDF, and OVAL documents.

Terminal window
./mscp.py scap [OPTIONS]
Argument Description
-x, --xccdf Generate XCCDF file only
-o, --oval Generate OVAL file only
-l, --list_tags List available keyword tags
-b BASELINE, --baseline BASELINE Generate for a specific baseline (default: all_rules)
--disa_stig FILE Include DISA STIG references from XCCDF file

Creates custom rules and baselines for unsupported compliance frameworks.

Terminal window
./mscp.py mapping [OPTIONS]
Argument Description
-c CSV, --csv CSV Path to CSV mapping file (required)
-f FRAMEWORK, --framework FRAMEWORK Source framework to map from (default: 800-53r5)

Extracts all translatable strings into a JSON template file.

Terminal window
./mscp.py admin translation-json [OPTIONS]
Argument Description
-o OUTPUT, --output OUTPUT Output file path (default: messages.json)
-d DOMAIN, --domain DOMAIN Translation domain (default: messages)

Compiles a translated JSON file into a binary .mo file for use with gettext.

Terminal window
./mscp.py admin mo-from-json JSON_FILE [OPTIONS]
Argument Description
JSON_FILE Path to the translated JSON file (required)
-l LOCALE, --locale LOCALE Target locale code, e.g. de, fr (required)
-m MO_FILE, --mo_file MO_FILE Output .mo filename (default: messages.mo)
-d DOMAIN, --domain DOMAIN Translation domain (default: messages)
-f, --use_fuzzy Enable fuzzy translation matching