Skip to content

Filter resources by tags #55

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Nov 8, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update readme filter
  • Loading branch information
polldo committed Nov 8, 2021
commit 115eb9f0142bbb63c15e04f85baa76a556ec0946
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ Use this command to provision a device:

## Device commands

Once a device has been created thorugh the provisioning procedure, it can be deleted by using the following command:
`$ arduino-cloud-cli device delete --id <deviceID>`

Devices currently present on Arduino IoT Cloud can be retrieved by using this command:
Devices currently present on Arduino IoT Cloud can be retrieved with:
`$ arduino-cloud-cli device list`

It has an optional `--tags` flag that allows to list only the devices having all the provided tags:
`$ arduino-cloud-cli device list --tags <key0>=<value0>,<key1>=<value1>`

Add tags to a device. Tags should be passed as a comma-separated list of `<key>=<value>` items:

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

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

Print only the things that have all the passed tags:

`$ arduino-cloud-cli thing list --tags <key0>=<value0>,<key1>=<value1>`

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:

Delete a thing with the following command:

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