| Crates.io | mqttv5-cli |
| lib.rs | mqttv5-cli |
| version | 0.4.5 |
| created_at | 2025-08-04 17:15:14.465466+00 |
| updated_at | 2025-08-18 03:04:57.89016+00 |
| description | Superior CLI tool for MQTT v5.0 - unified client and broker commands with ergonomic input design |
| homepage | |
| repository | https://github.com/fabriciobracht/mqtt-lib |
| max_upload_size | |
| id | 1780965 |
| size | 78,304 |
A unified MQTT v5.0 CLI tool that replaces mosquitto_pub, mosquitto_sub, and mosquitto with superior ergonomics and user experience.
cargo install mqttv5-cli
# Basic publish
mqttv5 pub --topic "sensors/temperature" --message "23.5°C"
# With QoS and retain
mqttv5 pub -t "sensors/temperature" -m "23.5°C" --qos 1 --retain
# Interactive mode (prompts for missing args)
mqttv5 pub
# Basic subscribe
mqttv5 sub --topic "sensors/+"
# Verbose mode shows topic names
mqttv5 sub -t "sensors/#" --verbose
# Subscribe for specific message count
mqttv5 sub -t "test/topic" --count 5
# Start broker on default port
mqttv5 broker
# Custom port and bind address
mqttv5 broker --host 0.0.0.0:1883
# Interactive configuration
mqttv5 broker
mqttv5 pub -t "home/living-room/temperature" -m "22.5" --qos 1
mqttv5 sub -t "home/+/+" --verbose
mqttv5 pub -t "config/device1" -m '{"enabled": true}' --retain
MQTT_HOST: Default broker host (default: localhost)MQTT_PORT: Default broker port (default: 1883)Licensed under either of Apache License, Version 2.0 or MIT license at your option.