mqttui

Subscribe to MQTT topics and publish messages from the terminal

brewmacoslinux
Try with needOr install directly
Source

About

Subscribe to a MQTT Topic or publish something quickly from the terminal

Commands

mqttui

Examples

subscribe to MQTT topic and see messages$ mqttui -H broker.example.com -t home/sensors/temperature
publish message to MQTT topic$ mqttui -H broker.example.com -t home/lights/living_room -m 'on'
connect to MQTT broker with username and password$ mqttui -H broker.example.com -u username -P password -t devices/status
subscribe to multiple topics with wildcards$ mqttui -H broker.example.com -t 'home/+/temperature'
connect to MQTT broker on custom port$ mqttui -H broker.example.com -p 8883 -t sensors/data