StackPanel

stackpanel config generate-example

Generate annotated config.example.nix with option descriptions

stackpanel config generate-example

Generate an annotated config.example.nix file with inline documentation from option descriptions.

This command reads the stackpanel options JSON (from nixosOptionsDoc) and generates a comprehensive example configuration file with inline comments explaining each option.

Examples: stackpanel config generate-example --options-json options.json --output config.example.nix stackpanel config generate-example --options-json options.json --output config.example.nix --no-comments stackpanel config generate-example --options-json options.json --current-config config.nix --output example.nix

Usage

stackpanel config generate-example

Flags

FlagTypeDefaultDescription
--current-configstringnonePath to current config.nix (optional, used as reference)
--no-commentsboolfalseSkip inline documentation comments
--options-jsonstringnonePath to options.json from nixosOptionsDoc
--outputstringnoneOutput path for generated config.example.nix

Global Flags

These flags are inherited from parent commands.

FlagTypeDefaultDescription
--daemon, -dboolfalseRun in daemon mode (no TUI, for background processes)
--no-colorboolfalseDisable color output
--no-tuiboolfalseDisable interactive TUI mode
--verbose, -vboolfalseEnable verbose output

On this page