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
ArgumentDescription
BASELINEPath to the baseline YAML file (required)
-A, --allGenerate all outputs
-s, --scriptGenerate the compliance script
-p, --profilesGenerate individual configuration profiles
--consolidated-profileGenerate a single consolidated profile
--granular-profilesGenerate granular per-setting profiles
-d, --ddmGenerate DDM components
-x, --xlsxGenerate Excel spreadsheet
-m, --markdownGenerate Markdown documentation
-l LOGO, --logo LOGOPath to logo file for the guide
-L LANG, --language LANGLanguage for output
-H HASH, --hash HASHSign profiles with subject key ID
--audit_name NAMEName for audit plist and log
--reference REFUse reference ID instead of rule ID
--darkDark mode output

Creates baseline YAML files by collecting rules with matching tags.

Terminal window
./mscp.py baseline [OPTIONS]
ArgumentDescription
-k KEYWORD, --keyword KEYWORDTag to collect rules containing the tag
-l, --list_tagsList available keyword tags and benchmarks
-t, --tailorCustomize baseline with organization values
-c, --controlsOutput the 800-53 controls covered by the rules
--os_name NAMETarget OS name
--os_version VERSIONTarget OS version

Creates SCAP 1.4 datastream, XCCDF, and OVAL documents.

Terminal window
./mscp.py scap [OPTIONS]
ArgumentDescription
-x, --xccdfGenerate XCCDF file only
-o, --ovalGenerate OVAL file only
-l, --list_tagsList available keyword tags
-b BASELINE, --baseline BASELINEGenerate for a specific baseline (default: all_rules)
--disa_stig FILEInclude DISA STIG references from XCCDF file

Creates custom rules and baselines for unsupported compliance frameworks.

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

Extracts all translatable strings into a JSON template file.

Terminal window
./mscp.py admin translation-json [OPTIONS]
ArgumentDescription
-o OUTPUT, --output OUTPUTOutput file path (default: messages.json)
-d DOMAIN, --domain DOMAINTranslation 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]
ArgumentDescription
JSON_FILEPath to the translated JSON file (required)
-l LOCALE, --locale LOCALETarget locale code, e.g. de, fr (required)
-m MO_FILE, --mo_file MO_FILEOutput .mo filename (default: messages.mo)
-d DOMAIN, --domain DOMAINTranslation domain (default: messages)
-f, --use_fuzzyEnable fuzzy translation matching