Documents
configuration-reference
configuration-reference
Type
External
Status
Published
Created
Feb 27, 2026
Updated
Mar 30, 2026
Updated by
Dosu Bot

Configuration Reference#

Complete reference for all opnDossier configuration options. Configuration can be set via command-line flags, environment variables, or configuration file with clear precedence order.

For how configuration precedence works, see the Configuration Guide.

Global Options#

These options are persistent flags available on all subcommands.

Logging & Output#

SettingCLI FlagEnvironment VariableConfig FileTypeDefaultDescription
Verbose logging--verboseOPNDOSSIER_VERBOSEverbosebooleanfalseEnable debug-level logging
Quiet mode--quietOPNDOSSIER_QUIETquietbooleanfalseSuppress all output except errors
Color output--colorOPNDOSSIER_COLOR-string"auto"Color output: auto, always, never
No progress--no-progressOPNDOSSIER_NO_PROGRESSno_progressbooleanfalseDisable progress indicators
Timestamps--timestamps--booleanfalseInclude timestamps in log output
Minimal mode--minimalOPNDOSSIER_MINIMALminimalbooleanfalseMinimal output (suppress progress/verbose)
Device type--device-type--string""Force device type (auto-detected if empty)
Config file--config--string""Custom config file path

Convert Command Options#

Output Control#

SettingCLI FlagEnvironment VariableConfig FileTypeDefaultDescription
Output file-o, --outputOPNDOSSIER_OUTPUT_FILEoutput_filestringstdoutOutput file path
Format-f, --formatOPNDOSSIER_FORMATformatstring"markdown"Output format (see below)
Force--force--booleanfalseOverwrite existing files without prompt

Supported formats: markdown (md), json, yaml (yml), text (txt), html (htm)

Content & Formatting#

SettingCLI FlagEnvironment VariableConfig FileTypeDefaultDescription
Sections--sectionOPNDOSSIER_SECTIONSsectionsstring[][]Sections: system, network, firewall, services, security
Wrap width--wrapOPNDOSSIER_WRAPwrapint-1Text wrap width (-1=auto, 0=off, >0=cols)
No wrap--no-wrap--booleanfalseDisable text wrapping (alias for --wrap 0)
Comprehensive--comprehensive--booleanfalseGenerate comprehensive detailed reports
Include tunables--include-tunables--booleanfalseInclude all system tunables in report output (markdown, text, HTML only; JSON/YAML always include all tunables)
Redact--redact--booleanfalseRedact sensitive fields (passwords, keys, etc.)

Audit Command Options#

The audit command is the dedicated entry point for security audit and compliance checks. See the audit command documentation for complete details.

Audit-Specific Flags#

SettingCLI FlagTypeDefaultDescription
Audit mode--modestring"blue"Audit mode: blue (defensive audit with compliance), red (attack surface)
Compliance plugins--pluginsstring[][]Comma-separated list: stig, sans, firewall. Only valid with --mode blue. Empty = all plugins run.
Plugin directory--plugin-dirstring""Directory containing dynamic .so compliance plugins. Failed plugin loads are non-fatal (warnings logged).
Failures only--failures-onlybooleanfalseShow only failing controls in compliance tables. Only valid with --mode blue and markdown format.

Shared Output Flags#

The audit command shares the following output and formatting flags with convert:

  • --format / -f -- Output format (markdown, json, yaml, text, html)
  • --output / -o -- Output file path (cannot be used with multiple input files)
  • --force -- Overwrite existing files without prompt
  • --comprehensive -- Generate detailed comprehensive reports
  • --redact -- Redact sensitive fields (passwords, keys, etc.)
  • --wrap -- Text wrap width
  • --no-wrap -- Disable text wrapping
  • --include-tunables -- Include all system tunables (markdown, text, HTML only)
  • --section -- Filter output to specific sections

Multi-File Audit Behavior#

When auditing multiple files, the --output flag cannot be used. Each report is auto-named with an -audit suffix and format extension:

# Single file: --output allowed
opndossier audit config.xml --mode blue -o security-report.md

# Multiple files: auto-named outputs (config1-audit.md, config2-audit.md)
opndossier audit config1.xml config2.xml --mode blue

Path encoding for multi-file output:

  • Bare filenames: config.xmlconfig-audit.md
  • Paths with directories: prod/site-a/config.xmlprod_site-a_config-audit.md

Usage Examples#

# Blue team audit with all plugins (default when no --plugins specified)
opndossier audit config.xml --mode blue

# Blue team audit with specific plugins
opndossier audit config.xml --mode blue --plugins stig,sans

# Show only failing controls in blue mode
opndossier audit config.xml --mode blue --failures-only

# Red team attack surface analysis
opndossier audit config.xml --mode red

# Custom plugins directory
opndossier audit config.xml --mode blue --plugin-dir /opt/plugins

# Multi-file audit with JSON output
opndossier audit config1.xml config2.xml --mode blue --format json

Display Command Options#

SettingCLI FlagEnvironment VariableConfig FileTypeDefaultDescription
Theme--themeOPNDOSSIER_THEMEthemestring""Rendering theme: auto, dark, light, none
Sections--sectionOPNDOSSIER_SECTIONSsectionsstring[][]Sections: system, network, firewall, services, security
Wrap width--wrapOPNDOSSIER_WRAPwrapint-1Text wrap width (-1=auto, 0=off, >0=cols)
No wrap--no-wrap--booleanfalseDisable text wrapping
Comprehensive--comprehensive--booleanfalseGenerate comprehensive reports
Include tunables--include-tunables--booleanfalseInclude all system tunables in report output (markdown, text, HTML only; JSON/YAML always include all tunables)
Redact--redact--booleanfalseRedact sensitive fields in output

Validate Command Options#

SettingCLI FlagEnvironment VariableConfig FileTypeDefaultDescription
JSON output--json-outputOPNDOSSIER_JSON_OUTPUTjson_outputbooleanfalseOutput validation errors in JSON format

Configuration File Format#

YAML Configuration File#

Create ~/.opnDossier.yaml with your preferred settings:

# Logging Configuration
verbose: false
quiet: false

# Output Settings
format: markdown
wrap: 120
sections: []

# File Paths
input_file: ''
output_file: ''

# Display
theme: ''

# Advanced
no_progress: false
json_output: false
minimal: false

Environment Variables#

All configuration options can be set via environment variables with the OPNDOSSIER_ prefix:

# Logging
export OPNDOSSIER_VERBOSE=true
export OPNDOSSIER_QUIET=false

# Output
export OPNDOSSIER_FORMAT=markdown
export OPNDOSSIER_WRAP=100

# File Paths
export OPNDOSSIER_INPUT_FILE="/path/to/config.xml"
export OPNDOSSIER_OUTPUT_FILE="./documentation.md"

Configuration Validation#

opnDossier validates configuration values on startup. Invalid values will result in clear error messages:

# Invalid format
$ opndossier convert -f invalid config.xml
Error: invalid format "invalid", must be one of: markdown, md, json, yaml, yml, text, txt, html, htm

# Mutually exclusive flags
$ opndossier --verbose --quiet convert config.xml
Error: if any flags in the group [verbose quiet] are set none of the others can be

# Invalid color mode
$ opndossier --color invalid convert config.xml
Error: invalid color "invalid", must be one of: auto, always, never