simple-iothub-cli

A simple command line tool to manage Azure IoT Hub devices


Keywords
azure, iot, iothub
License
MIT
Install
npm install simple-iothub-cli@0.0.3

Documentation

Simple Azure IoT Hub CLI

A simple platform independent command line interface to manage Azure IoT Hub devices.

How to install

Make sure, Node.js is installed on your system and simply add the simple-iothub-cli package via npm.

npm install simple-iothub-cli --global

How to use

Example

First, create a connection to your Azure IoT Hub, using the iothubowner's connection string

iothub connect "HostName=iothubname.azure-devices.net;SharedAccessKeyName=iothubowner;SharedAccessKey=mysupersecretkey123="

Hint: Please don't forget the quotes " around the connection string!

Now you can run your commands to manage devices

iothub add Demo123 --json

Commands

  • connect creates a connection to an IoT Hub
  • disconnect closes the connection
  • list displays a list of all devices
  • add adds a new device
  • delete removes an existing device

Help

Get a list of commands and all of their options at the according help pages.

iothub -- help
iothub <command> --help