Skip to main content

bb-eco template

Manage device configuration templates

Usage

bb-eco template [command] [options]

Options

OptionDescription
--csvOutput in CSV format
--jsonOutput in JSON format
--timeout <timeout>Override default timeout in milliseconds
--verboseEnable verbose/debug output
-?, -h, --helpShow help and usage information

Subcommands

CommandDescription
apply <device> <file>Apply a configuration template to a device
diff <device> <file>Compare a device's current config against a template
export <device> <file>Export a device's configuration as a reusable template
validate <file>Validate a template file without applying

Examples

The config-as-code loop in four commands:

bb-eco template export 192.168.2.97 es-522-baseline.json
bb-eco template validate es-522-baseline.json
bb-eco template diff 192.168.2.97 es-522-baseline.json
bb-eco template apply 192.168.2.97 es-522-baseline.json --dry-run

Export a known-good device once, commit the file to version control, then diff on a schedule (or in CI) to catch unauthorised changes and apply to bring drifted devices back to the baseline. Each subcommand page below shows its real output.

This page is auto-generated from the live CLI help text. Do not edit by hand - re-run node scripts/gen-cli-reference.mjs after changes. Example sections are maintained in docs/cli-examples/ in the bb-eco repo.