Skip to content

config validate

opnDossier config validate

Validate a configuration file

Synopsis

Validate a configuration file for syntax and semantic errors.

This command checks that a configuration file is valid YAML and that all configuration options are recognized and have valid values. It reports errors with line numbers where possible.

Exit codes: 0 - Configuration is valid 5 - Configuration validation error

Examples: # Validate the default configuration file opnDossier config validate

# Validate a specific configuration file opnDossier config validate /path/to/config.yaml

# Validate configuration in CI/CD pipeline opnDossier config validate ~/.opnDossier.yaml || exit 1

opnDossier config validate [file] [flags]

Options

  -h, --help   help for validate

Options inherited from parent commands

      --color string         Color output mode (auto, always, never) (default "auto")
      --config string        Configuration file path (default: $HOME/.opnDossier.yaml)
      --debug                Enable debug-level logging (all messages, for troubleshooting)
      --device-type string   Force device type (supported: opnsense, pfsense). Bypasses auto-detection.
      --minimal              Minimal output mode (suppresses progress and verbose messages)
      --no-progress          Disable progress indicators
  -q, --quiet                Suppress all output except errors and critical messages
      --timestamps           Include timestamps in log output
  -v, --verbose              Enable info-level logging (warnings, errors, and informational messages)

SEE ALSO

Auto generated by spf13/cobra on 20-Apr-2026