mqcat

Crates.iomqcat
lib.rsmqcat
version0.3.0
created_at2025-09-28 11:44:41.106059+00
updated_at2025-10-14 12:49:08.654563+00
descriptionCLI pub/sub client (supports zenoh/nats/mqtt/centrifuge)
homepage
repository
max_upload_size
id1858261
size186,214
Alex Kocharin (rlidwka)

documentation

README

mqcat

Command-line client for pub/sub messaging systems like zenoh, nats, mqtt, and centrifuge.

Why?

NATS has a great CLI tool, Zenoh is lacking one at the moment (python one is bit too slow), and Centrifugo doesn't have one at all.

I wanted to have the same experience as NATS CLI with other protocols/brokers, so I wrote this tool.

Installation

Option 1 - download new binary:

  • download the binary from the releases page

Option 2 - update existing binary:

  • run mqcat --upgrade to upgrade to the latest version

Option 3 - compile from source code:

  • run cargo install mqcat to install the latest version from source code (if you have Rust installed)

Usage

zenoh

# publish a message to zenoh
mqcat zenoh pub 'test' 'Hello, world!'

# subscribe to zenoh topics
mqcat zenoh sub '**'

# connect to specific zenoh server
mqcat zenoh+tcp/localhost:7447 sub 'test'

nats

# publish a message to nats
mqcat nats pub 'test' 'Hello, world!'

# subscribe to nats topics
mqcat nats sub '>'

# connect to specific nats server
mqcat nats://localhost:4222 sub 'test'
Commit count: 0

cargo fmt