Download

Prebuilt binaries for macOS, Windows and Linux.

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.

Explore AI Agent Skill

Install the skill with the Skills CLI

$npx skills add emqx/MQTTX --skill mqttx-cli

Quick Start

Connect

$mqttx conn -h 'broker.emqx.io' -p 1883 -u 'admin' -P 'public'

Subscribe

$mqttx sub -t 'hello' -h 'broker.emqx.io' -p 1883

Publish

$mqttx pub -t 'hello' -h 'broker.emqx.io' -p 1883 -m 'Hello from MQTTX CLI'

Better Together with EMQX

Deploy EMQX in the cloud or on your own infrastructure.

EMQX Cloud

Build MQTT data pipelines in minutes and connect millions of devices as you scale.

  • 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

EMQX Enterprise

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