MOSQUITTO(7)
๐ MOSQUITTO(7) โ conventions and miscellaneous, bestie edition
okay so you opened the mosquitto(7) page and that means you want the vibe tour of the whole project, not just one tool. buckle up ๐
โจ NAME โจ
mosquitto โ project overview. that's it, that's the whole thing. it's the "hey, here's the family photo" page ๐ซถ
๐ธ DESCRIPTION ๐ธ
so the mosquitto project is this whole little ecosystem of MQTT related programs, and it's giving full ensemble cast โจ it's made up of:
- the mosquitto broker itself
- applications that go with it
- command line clients
- and a whole client library for when you wanna build your own custom MQTT clients ๐
if you want a quick rundown of what MQTT even is, peep mqtt(7) โ it's the lil primer ๐ฅ
Mosquitto is an Eclipse Foundation project, part of the IoT top level project. very much main character energy in the IoT world, no cap ๐
the deets:
- project home page: mosquitto.org
- github project: github.com/eclipse-mosquitto/mosquitto
- and there's a public MQTT test broker literally just sitting there for you at test.mosquitto.org ๐ฆ
development is driven by Cedalo, who also provide professional support and enterprise features for mosquitto. slay, sponsored by the pros ๐
๐ MOSQUITTO BROKER ๐
the broker is the core of the project, periodt. everything orbits it ๐
- how to start it, what MQTT support looks like, feature descriptions โ
mosquitto(8) - the full tea on the configuration file format โ
mosquitto.conf(5)
bestie if you're configuring the broker without reading mosquitto.conf(5) you're lowkey just guessing. don't do that to yourself ๐ญ
๐ง MOSQUITTO BROKER APPLICATIONS ๐ง
these command line apps directly support the running of the mosquitto broker. they're the backstage crew that keeps the show going ๐
๐ mosquitto_ctrl
this one lets you interact with the broker MQTT APIs while the broker is running. it's got two modes and they're both iconic:
- batch mode โ you provide all arguments on the command line
- interactive shell mode โ available from version 2.1 onwards โจ
the batch mode is described in mosquitto_ctrl(1), and the Dynamic Security module gets its own page at mosquitto_ctrl_dynsec(1).
the interactive shell mode is described in mosquitto_ctrl_shell(1). iykyk ๐
๐ mosquitto_passwd
this tool generates and modifies password files โ the kind you use with the mosquitto_password_file plugin or the password_file configuration option. it's described in mosquitto_passwd(1) ๐ซถ
โญ mosquitto_signal
available from version 2.1.
this tool sends signals to the broker. on POSIX systems it does the same task as the kill command, but with named signals instead of numbers (much more readable, we love that ๐ธ). on Windows it's the only method of sending signals to the broker โ literally the only one ๐
it's described in mosquitto_signal(1).
๐ฅ MOSQUITTO MQTT COMMAND LINE CLIENTS ๐ฅ
these are the MQTT clients that live on your command line โ perfect for testing and automating tasks related to any MQTT broker, not just ours. equal opportunity icon behavior ๐
๐ mosquitto_pub
publishes messages to a broker. supports:
- sending simple messages straight from the command line
- reading from
stdin - sending files ๐
described at mosquitto_pub(1).
๐ฆ mosquitto_rr
request/response style, and the way that it works is: it sends a single message to the broker and waits for a response on another topic. very "text me back" energy ๐ญ
request/response support is an MQTT v5.0 feature, but it's not required in most cases for this client. good to know, no cap.
described at mosquitto_rr(1).
๐ mosquitto_sub
subscribes to topics on the broker and prints the messages it receives. and bestie, the output options? a wide variety. obsessed ๐
described at mosquitto_sub(1).
๐ง MOSQUITTO CLIENT LIBRARY ๐ง
the Mosquitto client library is described at libmosquitto(3). go build something cute ๐
๐ AUTHOR ๐
Roger Light <roger@atchoo.org>
ok that's the whole tour, bestie. go forth and MQTT responsibly ๐ธโจ
๐ Mosquitto Project ยท 02/09/2026 ยท MOSQUITTO(7) ๐
later babes, xoxo ๐ซถ๐
๐ฆ where this page comes from
- alpine 3.24: mosquitto-doc 2.1.2-r1 ยท EPL-1.0 OR EPL-2.0
- fedora 44: mosquitto 2.1.2-1.fc44 ยท EPL-2.0
- fedora 44: mosquitto 2.1.2-1.fc44 ยท EPL-2.0
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms