Skip to content

Command line tool to remove retained MQTT topics by wildcard

License

Notifications You must be signed in to change notification settings

hobbyquaker/mqtt-forget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mqtt-forget

NPM version Dependency Status Build Status XO code style License

Command line tool to remove retained MQTT topics by wildcard

Install

$ sudo npm install -g mqtt-forget

Usage

Usage: mqtt-forget <Options>

Options:
  -d, --debug  Enable debug messages
  -t, --topic  MQTT topic, wildcards + and # allowed, may be repeated [required]
  -u, --url    MQTT broker url                     [default: "mqtt://127.0.0.1"]
  -f, --force  Remove topics without confirmation
  --help       Show help                                            
  --version    Show version number                                 

Examples

Remove all topics matching test/# via websocket connection

$ mqtt-forget -u ws://websocketbroker -t 'test/#'

Remove all retained topics without confirmation, broker with authentication

$ mqtt-forget -u mqtt://user:password@broker -t '#' -f

Contributing

Pull Requests welcome! :-)

License

MIT (c) 2017 Sebastian Raff

About

Command line tool to remove retained MQTT topics by wildcard

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published