# meshcore-cli * https://github.com/meshcore-dev/meshcore-cli * https://github.com/mukw-labs/meshcore-trace * [[Meshcore/Linux]] ## Run a trace ``` meshcli -j -s /dev/ttyUSB0 trace e2,4a,e2 meshcli -j -s /dev/ttyUSB0 trace e260,4aaa,e260 ``` Example: ```json { "tag": 3457783684, "auth": 0, "flags": 0, "path_len": 3, "path": [ { "hash": "e2", "snr": 6.0 }, { "hash": "4a", "snr": -1.5 }, { "hash": "e2", "snr": 4.0 }, { "snr": 5.75 } ] } ``` ```json { "tag": 4020427322, "auth": 0, "flags": 1, "path_len": 3, "path": [ { "hash": "e260", "snr": 6.75 }, { "hash": "4aaa", "snr": -3.75 }, { "hash": "e260", "snr": 2.75 }, { "snr": 5.75 } ] } ``` ## node_discover This command can be used to discover nearby nodes. ```bash $ meshcli -j -s /dev/ttyUSB0 nd | jq ``` ```json [ { "SNR": 10.5, "RSSI": -88, "path_len": 0, "node_type": 2, "SNR_in": 11.0, "tag": "a4b73a58", "pubkey": "e2601d59151789bd" }, { "SNR": 10.75, "RSSI": -42, "path_len": 0, "node_type": 2, "SNR_in": 10.25, "tag": "a4b73a58", "pubkey": "2fd9c7bbc93def5f" }, { "SNR": 11.0, "RSSI": -81, "path_len": 0, "node_type": 2, "SNR_in": 12.0, "tag": "a4b73a58", "pubkey": "75ab85174506c320" } ] ``` ## Node Info ``` /usr/local/bin/meshcore-cli -j -s /dev/meshcore0 req_status "🦷 Quakers Hill Wold" ``` If it's connected via USB, you can use the `-r` flag. You can pass through repeater commands like this: ``` meshcli -s /dev/ttyACM0 login "NODE NAME" PASSWD meshcli -s /dev/ttyACM0 cmd "NODE NAME" "set owner.info NAME" ```