Skip to content

config init

opnDossier config init

Generate a template configuration file

Synopsis

Generate a template configuration file with all options commented out.

This creates a well-documented .opnDossier.yaml file that you can customize to set your preferred defaults. The template includes all available options with explanations.

By default, the configuration file is created in your home directory as ~/.opnDossier.yaml. Use --output to specify a different location.

Examples: # Generate template in default location (~/.opnDossier.yaml) opnDossier config init

# Generate template at a custom path opnDossier config init --output /path/to/config.yaml

# Overwrite existing configuration file opnDossier config init --force

# Generate in current directory opnDossier config init --output .opnDossier.yaml

opnDossier config init [flags]

Options

  -f, --force           Overwrite existing configuration file
  -h, --help            help for init
  -o, --output string   Output path for configuration file (default: ~/.opnDossier.yaml)

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