A node command line app to send mqtt messages through a mqtt broker. Can also be used to subscribe and listen to incoming messages on a topic.
$ [sudo] npm install mqtt-cli -g
$ mqtt-cli --help
Usage: mqtt-cli hostname topic payload
e.g. mqtt-cli test.mosquitto.org Hello "Test hello message"
Options:
-h : this help option
-w : pass at the end to watch incoming message on the published topic. Usage: mqtt-cli hostname topic payload -w
License: MIT Author: jinmatt