Command Line ToolsΒΆ
bocli β command-line tool π§ΒΆ
bocli is the console script provided by this package (see pyproject.toml).
Install the package to get the bocli command (pip install -e .) or run via uv run bocli.
Usage:
bocli [global options] <command> [command options]
Global options
-h, --hostDevice base URL for CoAP commands (e.g.coap://192.168.1.10)-v, --verboseIncrease verbosity (repeatable)-c, --compatibleCompatibility string (default:bst,borneo-lyfi)--versionPrint version and exit
Available commands
lotaβ perform local OTA over CoAPusage:
bocli -h coap://192.168.1.100 lota firmware.bin [--block-size 512] [--status-only]note:
fw_pathis required;--status-onlywill only query OTA status and exit
mdnsβ discover devices via mDNS (e.g.bocli mdns -t 5orbocli mdns --find)getβ callget_<what>onLyfiCoapClientand print JSONusage:
bocli -h coap://192.168.1.100 get colorlist targets:
bocli -h coap://192.168.1.100 get --list
capabilitiesβ list availableget_...methods (supports--json)on/offβ turn device on / off (e.g.bocli -h coap://192.168.1.100 on)factory-resetβ perform factory reset (use-yto bypass confirmation)
Examples
# discover devices with mDNS for 3 seconds
bocli mdns -t 3
# list `get_...` targets supported by the device
bocli -h coap://192.168.1.100 get --list
# get a resource (prints JSON)
bocli -h coap://192.168.1.100 get color
# turn device on
bocli -h coap://192.168.1.100 on
# perform OTA (upload firmware)
bocli -h coap://192.168.1.100 lota firmware.bin
# check OTA status only (fw_path is still required by the CLI)
bocli -h coap://192.168.1.100 lota firmware.bin --status-only
See borneo/cli.py for full command descriptions and options.