index
Type
External
Status
Published
Created
Feb 27, 2026
Updated
Mar 13, 2026
Updated by
Dosu Bot

Usage Examples#

This section provides comprehensive examples for common workflows and use cases with opnDossier. Each example is designed to be practical and immediately usable.

Quick Start Examples#

Basic Configuration Conversion#

# Convert OPNsense config to markdown
opndossier convert config.xml

# Convert to JSON format
opndossier convert config.xml -f json

# Convert to YAML format
opndossier convert config.xml -f yaml

# Convert to plain text
opndossier convert config.xml -f text

# Convert to self-contained HTML report
opndossier convert config.xml -f html -o report.html

Display Configuration in Terminal#

# Display with syntax highlighting
opndossier display config.xml

# Display with dark theme
opndossier display --theme dark config.xml

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

Validate Configuration#

# Validate single file
opndossier validate config.xml

# Validate multiple files
opndossier validate config1.xml config2.xml config3.xml

# Validate with verbose output
opndossier --verbose validate config.xml

Common Workflows#

1. Basic Documentation#

  • Simple configuration conversion
  • Output format options
  • File management

2. Automation and Scripting#

  • CI/CD integration
  • Batch processing
  • Automated documentation

3. Troubleshooting and Debugging#

  • Error handling
  • Debug techniques
  • Common issues

4. Advanced Configuration#

  • Theme customization
  • Section filtering
  • Text wrapping options

Example Categories#

By Use Case#

  • Network Documentation: Generate readable documentation from OPNsense configs
  • Configuration Analysis: Analyze and understand complex setups
  • Backup Documentation: Document configuration backups

By Output Format#

  • Markdown: Human-readable documentation (default)
  • JSON: Programmatic access and processing
  • YAML: Configuration management integration
  • Text: Plain text without markdown formatting
  • HTML: Self-contained HTML reports

By Workflow Type#

  • Interactive: Manual command execution
  • Automated: Script-based processing
  • CI/CD: Pipeline integration
  • Batch: Multiple file processing

Getting Started#

  1. Install opnDossier: Follow the installation guide
  2. Get a sample config: Use one of the sample files in testdata/
  3. Try basic conversion: opndossier convert testdata/sample.config.1.xml
  4. Explore examples: Browse the examples below for your specific use case

Sample Files#

The project includes sample configuration files for testing:

# List available sample files
ls testdata/*.xml

# Use a sample file for testing
opndossier convert testdata/sample.config.1.xml
opndossier display testdata/sample.config.2.xml
opndossier validate testdata/sample.config.3.xml

Next Steps#


For detailed command reference, see the Commands Overview. For installation instructions, see the Installation Guide.