Download

Install MQTTX using the Command Line.

  • Windows Windows
  • Mac Mac
  • Linux Linux
  • Docker Docker

Why MQTTX CLI

Designed to help develop and debug MQTT faster on the terminal.

Open Source

100% open source under Apache 2.0 license

Dependency-free

Get up and run with no prerequisites required

Easy to Integrate

Quick integration into automation test scripts

One and Two Way SSL

Support for one-way and two-way SSL authentication

AI Agent Skill

The mqttx-cli Agent Skill teaches AI coding agents to operate MQTTX CLI correctly and safely — connection checks, publishing and subscribing, MQTT 5 features, TLS authentication, payload codecs, benchmarks, and data simulation.

Install the skill with the Skills CLI
npx skills add emqx/MQTTX --skill mqttx-cli
copied
Explore AI Agent Skill →

Quick Start

Connect
mqttx conn -h 'broker.emqx.io' -p 1883 -u 'admin' -P 'public'
copied
Subscribe
mqttx sub -t 'hello' -h 'broker.emqx.io' -p 1883
copied
Publish
mqttx pub -t 'hello' -h 'broker.emqx.io' -p 1883 -m 'Hello from MQTTX CLI'
copied
Explore Documentation →

Better Together with EMQX

Quickly deploy EMQX anywhere — in the cloud or on your own infrastructure.

EMQX Cloud

Build MQTT data pipelines in minutes — connect millions of devices and scale effortlessly.

  • Massive-scale MQTT messaging with ultra-low latency
  • Connect, process, store, and analyze IoT data in real time
  • Available globally with enterprise-grade high availability

Self-Managed

Deploy EMQX on your own servers with full control.

  • Flexible deployment: VMs, containers, Kubernetes
  • Works in private, hybrid, and public clouds
  • AWS/GCP/Azure marketplace options