Arduino-cloud-cli OTA by --device-tags

I am trying to perform an ota mass-upload by device tag using arduino-cloud-cli.

Running the following at the command line
arduino-cloud-cli ota mass-upload --fqbn arduino:samd:mkrwifi1010 --device-tags model=wt21 --file C:\myBinary.ino.bin -v

returns No ota done.

Running the same command with --device-ids instead of --device-tags is successful.

Is the --device-tags flag not functional yet?

I plan on scripting the update procedure in a batch file so it can be run by personnel with a non-technical background and it would be easier to manage if the update could be done by tag instead of maintaining a list of device ID's

Thanks

Hello @imarocktscientst ,

please double check your tags are on devices and not on your things.

You can verify that by checking the Tags column after doing

arduino-cloud-cli device list

To add a new tag you need to use:

arduino-cloud-cli device create-tags -i DEVICE_ID --tags myTag=myValue

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.