Skip to content

Commit 115eb9f

Browse files
committed
Update readme filter
1 parent b80d28c commit 115eb9f

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ Use this command to provision a device:
6565

6666
## Device commands
6767

68-
Once a device has been created thorugh the provisioning procedure, it can be deleted by using the following command:
69-
`$ arduino-cloud-cli device delete --id <deviceID>`
70-
71-
Devices currently present on Arduino IoT Cloud can be retrieved by using this command:
68+
Devices currently present on Arduino IoT Cloud can be retrieved with:
7269
`$ arduino-cloud-cli device list`
7370

71+
It has an optional `--tags` flag that allows to list only the devices having all the provided tags:
72+
`$ arduino-cloud-cli device list --tags <key0>=<value0>,<key1>=<value1>`
73+
7474
Add tags to a device. Tags should be passed as a comma-separated list of `<key>=<value>` items:
7575

7676
`$ arduino-cloud-cli device create-tags --id <deviceID> --tags <key0>=<value0>,<key1>=<value1>`
@@ -106,6 +106,12 @@ Print only the thing associated to the passed device:
106106

107107
`$ arduino-cloud-cli thing list --device-id <deviceID>`
108108

109+
Print only the things that have all the passed tags:
110+
111+
`$ arduino-cloud-cli thing list --tags <key0>=<value0>,<key1>=<value1>`
112+
113+
Things can be deleted using the thing delete command. This command accepts two mutually exclusive flags: `--id` and `--tags`. Only one of them must be passed. When the `--id` is passed, the thing having such ID gets deleted:
114+
109115
Delete a thing with the following command:
110116

111117
`$ arduino-cloud-cli thing delete --id <thingID>`

0 commit comments

Comments
 (0)