Devices
Create, read, update, and delete devices using the Ubidots CLI.
This command allows you to perform CRUD operations over devices in Ubidots. Its subcommands are:
Usage: ubidots devices [OPTIONS] COMMAND [ARGS]...
Device management and operations.
╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ───────────────────────────────────────────────────────────────────╮
│ add Adds a new device. │
│ delete Deletes a specific device using its id or label. │
│ get Retrieves a specific device using its id or label. │
│ list Lists all available devices. │
│ update Update a device. │
╰──────────────────────────────────────────────────────────────────────────────╯Create a device
Create a device in your Ubidots account.
Usage: ubidots devices add [OPTIONS] LABEL
╭─ Arguments ──────────────────────────────────────────────────────────────────╮
│ label TEXT The label for the device. [required] │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --name TEXT The name of the device. │
│ --description TEXT A brief description of the device. │
│ --organization TEXT The organization associated with the device. Its │
│ id or key must be provided. │
│ --type TEXT The device type associated with the device. Its │
│ id or key must be provided. │
│ --tags TEXT Comma-separated tags for the device. e.g. │
│ tag1,tag2,tag3 │
│ --properties TEXT Device properties in JSON format. │
│ [default: {}] │
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯Get a device
Retrieve a device from Ubidots.
Update a device
Update a device in Ubidots.
Delete a device
Delete a device from your Ubidots account.
This command permanently deletes the device, just like removing it through the platform, thus special care is advised.
List all devices
List all devices on your Ubidots account.
Last updated
Was this helpful?