Open MQTT CLI in an interactive shell session. The shell uses JLine for handling console input. Therefore, tab-completion, command-history, password-masking and other familiar shell features are available.
The Shell-Mode is based around a client context driven use case. Therefore, methods like Connect and Disconnect switch the current context of the shell and commands like Publish and Subscribe always relate to the currently active client context.
$ mqtt shell # starts the shell
mqtt> con -i myClient # connect client with identifier 'myClient'
myClient@host> pub -t test -m msg # publish the message 'msg' with the new context client
myClient@host> dis # disconnect and remove context
NOTE: A client is uniquely identified in the CLI by the hostname and the unique identifier.
|Requires active client context
|Log to ~./mqtt-cli/logs (Configurable through ~/.mqtt-cli/config.properties).
|Display help message for command.
|Display version information of the cli.