bb-eco template export
Export a device's configuration as a reusable template
Usage
bb-eco template export <device> <file> [options]
Arguments
| Name | Description |
|---|---|
<device> | IP address, MAC address, or device name |
<file> | Output template file path (.json) |
Options
| Option | Description |
|---|---|
--csv | Output in CSV format |
--exclude-network | Exclude network configuration from template |
--include-security | Include security credentials in template |
--json | Output in JSON format |
--timeout <timeout> | Override default timeout in milliseconds |
--verbose | Enable verbose/debug output |
-?, -h, --help | Show 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.2.97 es-522-baseline.json
Template exported to es-522-baseline.json
The exported file records the device family, compatible model, and every configurable section (network, device, security, serial ports for ES / IO for ED). Commit it to version control as the device's baseline, then track changes with template diff and enforce it with template apply.
Include password fields in the export (they are omitted by default):
bb-eco template export 192.168.2.97 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.2.97 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.