Skip to main content

bb-eco template export

Export a device's configuration as a reusable template

Usage​

bb-eco template export <device> <file> [options]

Arguments​

NameDescription
<device>IP address (with an optional :port when the web server was moved off 80), MAC address, or device name
<file>Output template file path (.json)

Options​

OptionDescription
--csvOutput in CSV format
--exclude-networkExclude network configuration from template
--include-securityInclude security credentials in template
--jsonOutput in JSON format
--timeout <timeout>Override default timeout in milliseconds
--verboseEnable verbose/debug output
-?, -h, --helpShow help and usage information

Examples​

Export a device's configuration as a JSON template, the starting point for config-as-code:

bb-eco template export 192.168.1.107 es-522-baseline.json
Template exported to es-522-baseline.json
Family: ES
Model: ES-522

The exported file records the device family, compatible model, and every configurable section, grouped the way the device's own web page groups them (device, network, serial ports for ES, IO for ED; security only when asked for). See the template format for every key, and example exports for each model. Commit it to version control as the device's baseline, then track changes with template diff and enforce it with template apply.

Include the security section (usernames, MAC filters and authentication; it is left out by default, and passwords are never exported):

bb-eco template export 192.168.1.107 es-522-baseline.json --include-security

Exclude the network section so the same template can be applied to devices with different IP addresses:

bb-eco template export 192.168.1.107 es-522-fleet.json --exclude-network

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.