MOSQUITTO(7)

๐Ÿ“ฆ
version 2.1.2 ยท 5 versions
, in alpine 3.24, fedora 44

๐Ÿ’… 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