I’ve noticed a few inconsistencies that have started to annoy me since I’ve noticed them. These are all in the ‘balena device’ subset of commands…
If we use
balena devices, we get a list of devices. Good.
$ balena devices ID UUID DEVICE NAME DEVICE TYPE APPLICATION NAME STATUS IS ONLINE SUPERVISOR VERSION OS VERSION 35 7341412 still-glitter jetson-nano triage Idle true 11.14.0 balenaOS 2.60.1+rev1
Now to bring up the information on that device, the help says:
$ balena help --verbose USAGE $ balena [COMMAND] [OPTIONS] PRIMARY COMMANDS ........ devices list all devices device <uuid>
Using the shortened UUID as per the output of
balena devices, we get:
$ balena device 7341412 BalenaDeviceNotFound: Device not found: 7341412
Ok, what about the
DEVICE NAME field… Nope:
$ balena device still-glitter BalenaDeviceNotFound: Device not found: still-glitter
But when we use the ID:
$ balena device 35 == STILL GLITTER ID: 35 DEVICE TYPE: jetson-nano STATUS: idle IS ONLINE: true IP ADDRESS: 10.1.1.194 ...... UUID: 73414124ca8ab35699814c985d555a02
So now we can get the full UUID, which also seems to work:
$ balena device 73414124ca8ab35699814c985d555a02 == STILL GLITTER ID: 35 DEVICE TYPE: jetson-nano STATUS: idle IS ONLINE: true IP ADDRESS: 10.1.1.194
So, what should I suggest to make this command set logical and follow what the help actually states?
Should it also match the shortened UUID? Should the documentation / help say to use the ID and not UUID? Should it be something else?
Thanks in advance.