display
Type
External
Status
Published
Created
Jul 18, 2026
Updated
Jul 18, 2026

display#

The display command renders an OPNsense configuration directly in your terminal with syntax highlighting and styled formatting. Unlike convert, it does not write to a file -- it is designed for quick, interactive review.

When to use it:

  • Quickly reviewing a config backup without opening a separate viewer
  • Spot-checking a specific section (e.g., firewall rules or interfaces) during troubleshooting
  • Verifying what a config contains before running a full conversion or audit
  • Reviewing configs over SSH where you cannot easily open generated files

Usage#

opndossier display [flags] <config.xml>

Flags#

FlagShortDefaultDescription
--themeautoTerminal color theme: auto, dark, light, none
--sectionallComma-separated list of sections to include: system, network, firewall, services, security
--wrapterminal widthSet text wrap width in columns
--no-wrapfalseDisable text wrapping
--comprehensivefalseGenerate detailed comprehensive report -- see convert: Comprehensive Mode
--include-tunablesfalseInclude system tunables (sysctl) in output -- see convert: System Tunables
--redactfalseRedact sensitive fields -- see convert: Redacting Sensitive Data

For global flags (--verbose, --quiet, --config, etc.), see Configuration Reference.

Themes#

The --theme flag controls the color palette used for terminal rendering. Themes are powered by Glamour, Charmbracelet's markdown rendering library.

ThemeBehavior
autoDetects your terminal's background color and selects light or dark automatically. This is the default.
darkLight text on dark backgrounds. Use this if auto-detection picks the wrong theme or you prefer to set it explicitly.
lightDark text on light backgrounds. Best for terminals with white or light-colored backgrounds.
noneDisables themed styling. Output is still formatted as Markdown but rendered without color. Useful for piping to other tools or terminals that do not support color.
# Force dark theme
opndossier display --theme dark config.xml

# Disable colors entirely
opndossier display --theme none config.xml

Screenshot of opnDossier display command showing glamour-rendered terminal output with system and network configuration

Examples#

# Display configuration with default theme
opndossier display config.xml

# Display with dark theme and redacted secrets
opndossier display --theme dark --redact config.xml

# Display only system and network sections
opndossier display --section system,network config.xml