This page summarizes light_pipeline.py commands and options.
doctorrunflashlist
python3 tools/light_pipeline.py doctor [--build-dir BUILD_DIR]Purpose:
- validate repo paths
- detect ESP-IDF
Option:
--build-dir- build directory to inspect
- default:
build/light-c6-thread
python3 tools/light_pipeline.py run [options]--manifest- manifest CSV path
- default:
tools/device_manifest.csv
--count- generate manifest with this many devices
--serial-prefix- default:
LGT
- default:
--start-index- default:
1
- default:
--serial-width- default:
4
- default:
--discriminator-start- default:
3840
- default:
--hw-ver- default:
1
- default:
--hw-ver-str- default:
1.0
- default:
--mfg-date- manufacturing date in
YYYY-MM-DD
- manufacturing date in
--vendor-id- default:
0xFFF1
- default:
--product-id- default:
0x8000
- default:
--vendor-name- default:
ESP-C6-Matter
- default:
--product-name- default:
Thread Light
- default:
--output-dir- default:
tools/out
- default:
--build-dir- default:
build/light-c6-thread
- default:
--target- default:
esp32c6
- default:
--skip-build--skip-labels--dry-run
--dac-provider {example,factory}- default:
example
- default:
--use-test-attestation
--label-output-dir- default:
tools/labels
- default:
--label-html- default:
tools/matter-labels.html
- default:
--label-csv--render-qr-svg
--apply-patches- apply repo patch files under
patches/toesp-matter/before build - omitted by default, so patches are only reported
- apply repo patch files under
--port--serial--serial-index- default:
1
- default:
--baud- default:
921600
- default:
--erase--monitor--flash- deprecated compatibility flag
python3 tools/light_pipeline.py flash --port PORT [options]Purpose:
- flash one generated device using existing build + provisioning outputs
Options:
--port--serial--serial-index--baud--erase--monitor--build-dir--output-dir--dry-run
python3 tools/light_pipeline.py list [--output-dir OUTPUT_DIR] [--dry-run]Purpose:
- list generated device serials
- list detected serial ports
Check environment:
python3 tools/light_pipeline.py doctorBuild one test device:
python3 tools/light_pipeline.py run --count 1Build with custom identity:
python3 tools/light_pipeline.py run \
--count 1 \
--dac-provider factory \
--vendor-id 0x1234 \
--product-id 0x5678Flash first generated row:
python3 tools/light_pipeline.py flash --port /dev/ttyUSB0 --serial-index 1- pipeline behavior:
pipeline.md - manifest fields:
manifest.md - commissioning flow:
commissioning.md - troubleshooting:
troubleshooting.md