| Crates.io | mqcat |
| lib.rs | mqcat |
| version | 0.3.0 |
| created_at | 2025-09-28 11:44:41.106059+00 |
| updated_at | 2025-10-14 12:49:08.654563+00 |
| description | CLI pub/sub client (supports zenoh/nats/mqtt/centrifuge) |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1858261 |
| size | 186,214 |
Command-line client for pub/sub messaging systems like zenoh, nats, mqtt, and centrifuge.
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.
Option 1 - download new binary:
Option 2 - update existing binary:
mqcat --upgrade to upgrade to the latest versionOption 3 - compile from source code:
cargo install mqcat to install the latest version from source code (if you have Rust installed)# 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'
# 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'