{"id":13582390,"url":"https://github.com/shuza/mqtt-cli","last_synced_at":"2025-08-03T17:33:40.080Z","repository":{"id":57549116,"uuid":"183674324","full_name":"shuza/mqtt-cli","owner":"shuza","description":"A cli application written in Go to provide terminal interaction with EMQ","archived":false,"fork":false,"pushed_at":"2019-05-13T05:26:20.000Z","size":27,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T09:19:41.109Z","etag":null,"topics":["cli-app","golang","golang-tools","mqtt","mqtt-broker","mqtt-client","mqtt-protocol"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shuza.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-26T18:10:40.000Z","updated_at":"2021-07-20T03:30:56.000Z","dependencies_parsed_at":"2022-08-27T00:32:24.120Z","dependency_job_id":null,"html_url":"https://github.com/shuza/mqtt-cli","commit_stats":null,"previous_names":["shuza/mqtt-sh"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shuza%2Fmqtt-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shuza%2Fmqtt-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shuza%2Fmqtt-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shuza%2Fmqtt-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shuza","download_url":"https://codeload.github.com/shuza/mqtt-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248543836,"owners_count":21121838,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli-app","golang","golang-tools","mqtt","mqtt-broker","mqtt-client","mqtt-protocol"],"created_at":"2024-08-01T15:02:40.186Z","updated_at":"2025-04-12T09:19:48.762Z","avatar_url":"https://github.com/shuza.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# Mqtt-cli\nThis a simple mqtt-cli application written in [Go](https://golang.org/). It has pub sub command which is suite for the shell script pipelining.\n\n# Install\nIf you have golang ready environment, you can easily install it\n```\ngo get github.com/shuza/mqtt-cli\n```\nOr you can install using following command\n```\ncurl -s -L https://raw.githubusercontent.com/shuza/mqtt-cli/master/install.sh | bash\n```\n\n# Usage\nYou can set host, port, clientId, topic and qos on the Environment variables.\n```\nexport MQTT_HOST=\"localhost\"\nexport MQTT_PORT=\"1883\"\nexport MQTT_CLIENT_ID=\"mqtt-cli\"\nexport MQTT_TOPIC=\"/test/mqtt/cli\"\nexport MQTT_QOS=\"1\"\n```\nOr you can use flags to do it.\n\n|   Name   |    Short Hand |    Description     |\n|:----------:|:-------------:|:------------:|\n| address    |      a        | Set MQTT host address |\n| port       |      p        | Set MQTT host port    |\n| clientId   |      i        | Set MQTT client ID    |\n| topic      |      t        | Set MQTT topic        |\n| qos        |      q        | Set MQTT service quality |\n| message    |      m        | Set MQTT message palyload |\n \n# Sub\n```\nmqtt-cli sub -a \"localhost\" -p 1883 -t \"/tmp/a\"\n```\n\n# Pub\n```\nmqtt-cli pub -a \"localhost\" -p 1883 -t \"/tmp/a\" -m \"thsi is to test\"\n```\n![Solid](https://media.giphy.com/media/JpGXXxiamqV53gqleB/giphy.gif)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshuza%2Fmqtt-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshuza%2Fmqtt-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshuza%2Fmqtt-cli/lists"}