Search code examples
cloudibm-cloudiotwatson-iot

Is there a CLI for the Watson IBM IoT service on Bluemix?


I use the IBM Watson IoT service in Bluemix, and I would like to know if there is a CLI for this service. For example, I want to create many types of terminals and add devices quickly.

Thank you.


Solution

  • You can programmatically register devices using bulk/devices operations. https://docs.internetofthings.ibmcloud.com/swagger/v0002.html#!/Bulk_Operations/post_bulk_devices_add

    Also, this recipe describes how to register multiple IoT devices.

    Here are some other links that may be helpful.
    This recipe talks in detail about how to register a device in Watson IoT Platform - https://developer.ibm.com/recipes/tutorials/how-to-register-devices-in-ibm-iot-foundation/

    This Java sample shows how one can do bulk addition/deletion - https://github.com/ibm-messaging/iot-platform-apiv2-samples/blob/master/java/api-samples-v2/README.md