{"repo":"moscajs/aedes-cli","free":true,"listed":false,"github":"https://github.com/moscajs/aedes-cli","clone":"git clone https://github.com/moscajs/aedes-cli.git","description":"Run Aedes MQTT Broker from the CLI","language":"JavaScript","stars":62,"topics":["aedes","mqtt","broker","cli","nodejs","hacktoberfest"],"license":"MIT","category":"cli-tools","readme_excerpt":"aedes-cli Aedes MQTT broker CLI plugin - aedes-cli - Install - Usage - Programmatically - Docker - Authorization - Persistence and Emitters Install Install the library using npm. Usage Here you can see the options accepted by the command line tool: To fully use Aedes you need to define a configuration file where the communication broker is defined. Here follows an example using Mongodb. A configuration file is structured in the following way: Programmatically You can also use aedes-cli programmatically: Docker aedes-cli is available on Docker-Hub for amd64, arm64v8, arm32v6, arm32v7, i386 archs. If you want to use a local credentials.json file and/or a custom config file to pass using --config option you have to use docker volumes and map the local folder containing those files to a folder inside the container. Minimal example: docker run --rm -it -p 1883:1883 moscajs/aedes:latest Example with custom config file: docker run --rm -it -p 1883:1883 -v $(pwd):/data moscajs/aedes:latest --config /data/myConfig.js - -v $(pwd):/data will map the local folder from where you are running this command to /data folder of the container - --config /data/myConfig.js will tell aedes to use the configuration file that is in your local folder Here there is an example with docker-compose that runs aedes with mongodb as persistence When using persistences with docker-compose file remember that the database url will be the name of the service in docker-compose, in the mongo example it will be: mo","default_branch":null,"files":null,"tree":[],"storefront":"/r/moscajs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/moscajs/aedes-cli/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}