MQTT CLI 1.2.0 released
Written by Till Seeberger
Category: MQTT CLI MQTT Client HiveMQ MQTT Client
Published: April 8, 2020
The HiveMQ team is pleased to announce the availability of MQTT CLI 1.2.0.
This release expands the CLI with a new command to quickly test MQTT brokers and adds two output options for the subscribe command.
Test Broker Command
The new Test command can be used to quickly test the supported features and limitations of an MQTT broker. You can lookup all options of this command in the official CLI documentation.
# Use the test command against our public MQTT broker $ mqtt test -h broker.hivemq.com
JSON Output for Subscribe
The Subscribe command now supports JSON formatted output. Simply include the
-J option to format
publishes that are received as JSON. If the payload is recognized as JSON, it is also formatted accordingly.
$ mqtt sub -t mqtt-cli -h broker.hivemq.com -J
Topic Output for Subscribe
When you subscribe to a wildcard topic, it is often useful to know from which specific topic a publish was received.
The Subscribe command now supports a
-T option to explicitly print out this topic with the publish message.
# Subscribe to the wildcard topic test/+ on our public MQTT broker with the -T option $ mqtt sub -t test/+ -h broker.hivemq.com -T
- Reading in password files with the
-pw:fileoption now ignores trailing newlines.
- The logging format and output of the logfile is now much tidier.
- The jar file of a new release is now included in the release assets on GitHub.
- The homebrew package size was decreased by half.
MQTT CLI 1.2.0 is supported on all main operating systems like Windows, OS X and Linux. You can find the installation instructions for your operating system in the official CLI documenation.
Have a great day,
Till from the HiveMQ Team