/IoT-Toolkit

Toolkit is a IoT protocol client CLI for IoT developer and learners. CoAP and MQTT protocol are currently supported. It supports colors, autocompletion, internationalization(chinese, english and german…) and multi-platforms

Primary LanguageJavaApache License 2.0Apache-2.0

ToolKit
ToolKit: human-friendly IoT Protocol client CLI🔧

GitHub issues GitHub stars Chocolatey-downloads GitHub release (latest by date)

Toolkit is a IoT protocol client CLI for IoT developer and learners. CoAP and MQTT protocol are currently supported. It supports colors, autocompletion, internationalization(chinese, english and german…) and multi-platforms

HTTPie in action

📖 中文文档 | 📖 English Document


Getting started

Linux & MacOS

to install SDKMAN!, see its installation.

sdk install toolkit

Windows

To install Chocolatey, see its installation.

choco install toolkit

Direct Download

Platform Toolkit
Linux toolkit-0.4.8-linux-x86_64.zip
Unix toolkit-0.4.8-osx-x86_64.zip
Windows toolkit-0.4.8-windows-x86_64.zip

Features

🎼 Integrate multi IoT protocols

Support for MQTT、CoAP, more protocols in the future.

👀 Multiple operating support

Runs on linux or unix or windows.

🌏 International Service

Multi-language configuration, chinese、english and german support.

💓 ANSI Colors and Styles

Using colors in your command’s output does not just look good: by contrasting important elements like option names from the rest of the message, it reduces the cognitive load on the user.

👥 Modern design

Provides Auto-Completion, user interaction is good and easy to operate.

💯 Low memory usage and faster startup speed

Static compilation runs avoid the CPU overhead of the JIT. using Native Image provides faster VM performance and startup speed. No need to rely on any running environment.

Examples

Set the language to German, Support

  • zh=chinese

  • de=german

  • en=english

  • fr=french

toolkit config -l=de 

CoAP

Get the resource at /test path from data provided by coap.me

toolkit coap get coap://coap.me/test

Update the data in the resource at /sink path provided by coap.me

toolkit coap post coap://coap.me/sink -p='testing for post data' -f=text/plain

MQTT

Subscribe to updates with the hello topic from test.mosquitto.org

toolkit mqtt sub -host=test.mosquitto.org -q=0 -t=hello

Publish a message to the hello topic of test.mosquitto.org

toolkit mqtt pub -host=test.mosquitto.org -q=0 -t=hello -m='hi toolkit'

Interactive Mode

toolkit mqtt call

Contributing

Have a look through existing Issues and Pull Requests that you could help with. If you'd like to request a feature or report a bug, please create a GitHub Issue using one of the templates provided.