Skip to main content

mqtt-cli

A command-line tool for publishing and subscribing to mqtt.

Use cases:

  • Trials
  • As part of a bash pipeline

Installation

pip install mqtt-cli

Usage

$ mqtt --help

usage: mqtt [-h] [--host HOST] [--port PORT] [--transport {tcp,websockets}] [--clientid CLIENTID] [--user USER] [--password PASSWORD] [--protocol {3,4,5}] [--path PATH] [--tls] [--clean-start] [--log-level LOG_LEVEL]
            {publish,subscribe} ...

MQTT command-line client application

positional arguments:
  {publish,subscribe}

options:
  -h, --help            show this help message and exit
  --host HOST
  --port PORT
  --transport {tcp,websockets}
  --clientid CLIENTID
  --user USER
  --password PASSWORD
  --protocol {3,4,5}
  --path PATH
  --tls
  --clean-start
  --log-level LOG_LEVEL
$ mqtt publish --help

usage: mqtt publish [-h] [--qos {0,1,2}] [-t TOPIC] [-m MESSAGE] [--line LINE] [--retain] [--queue QUEUE]

options:
  -h, --help            show this help message and exit
  --qos {0,1,2}
  -t TOPIC, --topic TOPIC
  -m MESSAGE, --message MESSAGE
  --line LINE
  --retain
  --queue QUEUE
$ mqtt subscribe --help

usage: mqtt subscribe [-h] [--qos {0,1,2}] -t TOPIC [--line LINE] [--json]

options:
  -h, --help            show this help message and exit
  --qos {0,1,2}
  -t TOPIC, --topic TOPIC
  --line LINE
  --json

TBC

Release files for mqtt-cli 0.4.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mqtt-cli 0.4.2
File Size Uploaded
mqtt_cli-0.4.2.tar.gz 8.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mqtt-cli 0.4.2
File Interpreter ABI Platform
mqtt_cli-0.4.2-py3-none-any.whl Python 3 none any Details

Total release size: 17.1 kB

Release files / mqtt_cli-0.4.2.tar.gz

Download URL mqtt_cli-0.4.2.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c4326dd65f5f6e6ecf9c8a92ed5b3a0fa1cb40b8136f6cbabecf48158d20f797
BLAKE2b-256 checksum
How to use checksums
3da1ec6e032905b284867a1ac144bc7b9792188afa8a48b9e08849a697508f4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 5, 2025.

Transparency log

Release files / mqtt_cli-0.4.2-py3-none-any.whl

Download URL mqtt_cli-0.4.2-py3-none-any.whl
Size 8.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e1b005c57bb8eb6063b96e501f57d077970094e6f55e36b4070efe588a28eb56
BLAKE2b-256 checksum
How to use checksums
9bdce18c6229df9dbbf5311e585252e706824be9387127278c68f914073032ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 5, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.4.2 This release

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page