मुख्य सामग्री पर जाएँ
Skillpedia
API और सर्वर (backend)5.1k · #15048

mqttx-cli

यह क्या करती है

यह mqttx कमांड चलाकर MQTT संदेश भेजती और प्राप्त करती है, कनेक्शन जाँचती है, और नमूना डेटा सिमुलेट करती है। यह उन डेवलपर्स और टेस्टर्स के लिए है जो MQTT मैसेजिंग पर काम करते हैं।

कब इस्तेमाल करें

  • ✓जब आप MQTT टॉपिक पर संदेश भेजना या सुनना टेस्ट करना चाहते हैं।
  • ✓जब आप जाँचना चाहते हैं कि TLS या लॉगिन के साथ ब्रोकर कनेक्शन काम करता है।
  • ✓जब आप त्वरित MQTT बेंचमार्क या नमूना संदेश सिमुलेट करना चाहते हैं।

Skill का लिंक

https://github.com/emqx/MQTTX/blob/main/skills/mqttx-cli/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/emqx/MQTTX/blob/main/skills/mqttx-cli/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मेरे टेस्ट ब्रोकर पर sensors/temp टॉपिक सब्सक्राइब कीजिए और आने वाले संदेश मुझे दिखाइए।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

आपका एजेंट mqttx टूल और उसकी help जाँचता है, ब्रोकर का विवरण सेट करता है, और समय सीमा के साथ कमांड चलाता है। फिर वह दिखे संदेश या त्रुटियों की रिपोर्ट करता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

MQTTX CLI

Prepare

  1. Locate mqttx, read mqttx --version, then inspect mqttx <command> --help for the task. Treat installed help as authoritative; release channels can differ. If missing or a required feature is unavailable, follow the repository's root INSTALL.md, or its standalone installation guide when this skill has been copied elsewhere. Do not update a working CLI on every invocation.
  2. Establish the broker hostname, port, transport (mqtt, mqtts, ws, wss), MQTT version, credentials, topic and intended operation from the user's context. Ask only for missing information that affects execution. Use the requested broker; do not substitute a public broker after a failure.
  3. Account for ~/.mqttx-cli/config, which can supply default host, port, protocol and credentials. Do not print its secrets or overwrite it for a one-off task. Explicit CLI arguments override defaults; --load-options loads command-specific JSON/YAML options, with explicitly supplied CLI arguments taking precedence. See configuration and utility commands for initialization, saving and loading.
  4. Set a finite observation deadline for connection/subscription tasks and retain a handle to each process started. Use the agent's process controller or an available OS timeout tool; a tool returning a session handle is not necessarily a deadline. Terminate and wait for owned processes at completion or timeout.

The CLI command registration in this repository (1.13.0) does not offer general --timeout, --max-messages, --json or --output jsonl flags. Do not invent them. Recheck help for other versions. --reconnect-period 0 disables reconnection; it is not an overall deadline. conn stays connected after success and sub keeps listening until stopped.

Choose a workflow

This skill covers every command registered in the repository's CLI 1.13.0, including command-specific limitations. Read only the references relevant to the task. Coverage describes how to operate available features; it does not make unsupported combinations work or guarantee every broker implements them.

Task Read
conn, pub, sub, bounded checks and round trips Basic workflows
Transport, TLS/mTLS, WebSocket headers, credentials, SCRAM Connections and authentication
MQTT 3/5, QoS, retained messages, sessions, wills, request/response, subscription properties MQTT features
Text/binary input, interactive line mode, files, codecs, Protobuf/Avro, random payloads Payloads and files
bench conn, bench pub, bench sub, simulate, ls --scenarios, custom generators Benchmarks and simulation
init, check, help/version, INI defaults, JSON/YAML options Configuration and utilities
Exact flag availability by command and version-specific caveats Capability map
Failures and diagnosis Troubleshooting

Read workflows for executable examples of a bounded connection check, one-message publish, bounded subscription, and end-to-end verification.

  • Connection check: use conn, capture diagnostics, and stop after observing Connected or reaching the deadline. Report MQTT connection success separately from publish/subscribe permissions.
  • Publish: use pub for a single message. Prefer --file-read or --stdin for complex payloads. Honor the requested QoS; use QoS 1 for a diagnostic round trip when unspecified. A publish success is not evidence that a subscriber or application processed the message.
  • Observe messages: use sub with the requested topic filters and a bounded observation window. Preserve topic, QoS and relevant payload evidence. Quote wildcard filters in the shell. Never infer that a topic does not exist from an empty observation window.
  • Verify delivery: start the subscriber first, wait for the expected topic's Subscribed to ... confirmation, then publish a unique marker and match the exact topic and marker. Do not use a fixed sleep as proof of subscription readiness. Use distinct client IDs and stop both processes on every completion path.
  • Troubleshoot: consult [troubleshooting](references/troub
अक्सर पूछे जाने वाले सवाल

क्या यह MQTT ब्रोकर खुद चलाता है?

नहीं। स्किल mqttx कमांड से MQTT चलाने को कवर करती है, ब्रोकर का प्रशासन नहीं।

क्या यह MQTTX डेस्कटॉप ऐप के साथ काम करता है?

नहीं। स्किल कहती है कि यह डेस्कटॉप ऐप नहीं चलाती।

सहेजे गए कनेक्शन कहाँ रहते हैं?

आपके होम फ़ोल्डर में mqttx-cli फ़ोल्डर के अंदर एक कॉन्फ़िग फ़ाइल में, जिसे एजेंट एक बार के काम के लिए न प्रिंट करता है न बदलता है।

जानकारी

लेखक का मूल विवरण

Use MQTTX CLI for MQTT connections, publishing and subscriptions, MQTT 5 features, TLS and SCRAM authentication, payload codecs and schemas, benchmarks, built-in or custom data simulation, configuration, installation and troubleshooting. Use when operating or testing MQTT through the mqttx command. Does not operate MQTTX Desktop or administer a broker.

repo: emqx/MQTTX

लोकप्रियता

GitHub स्टार
5.1k
रैंकिंग में स्थान
#15048
लाइसेंस
Apache-2.0
अपडेट की गई
1/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

मिलती-जुलती skills