← 返回命令列表

Linux command

mqttui 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Subscribe to all topics

mqttui

Connect to a specific broker

mqttui mqtt://[host]:[port]

Subscribe to a specific topic

mqttui "[topic]"

Publish a message

mqttui publish "[topic]" "[message]"

说明

mqttui is a TUI tool for subscribing to MQTT topics and publishing messages from the terminal. It displays a topic tree with live message updates and supports retained message management. The default broker can be configured via the MQTTUI_BROKER environment variable to avoid specifying it each time.

参数

publish _TOPIC_ _MESSAGE_
Publish a message to a topic.
clean-retained _TOPIC_
Clean retained messages for a topic.

FAQ

What is the mqttui command used for?

mqttui is a TUI tool for subscribing to MQTT topics and publishing messages from the terminal. It displays a topic tree with live message updates and supports retained message management. The default broker can be configured via the MQTTUI_BROKER environment variable to avoid specifying it each time.

How do I run a basic mqttui example?

Run `mqttui` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does publish _TOPIC_ _MESSAGE_ do in mqttui?

Publish a message to a topic.