balena-io / balena-cli

The official balena CLI tool.
Apache License 2.0
453 stars 139 forks source link

`balena app/device {ID} --view` option to open application/device panel from cli #1440

Closed peterblazejewicz closed 2 years ago

peterblazejewicz commented 5 years ago

I'd like to request a command similar to npm view, to allow quickly open a dashboard panel for the app from the CLI app:

Scenario:

balena apps
ID      APP NAME             DEVICE TYPE     ONLINE DEVICES DEVICE COUNT
.....

pick ID:

balena app {ID} --view

It shall start the url with like:

https://dashboard.balena-cloud.com/apps/{ID}/

which resolves to address like: https://dashboard.balena-cloud.com/apps/1509151/devices

Similary for the device scenario:

balena devices
ID      UUID    DEVICE NAME DEVICE TYPE     APPLICATION NAME     STATUS IS ONLINE SUPERVISOR VERSION OS VERSION           DASHBOARD URL
....

pick ID (which is a short hash, instead of the long one used for current dashboard url):

balena device {ID} --view

Or maybe, just extend the information about the apps with the url link similar to devices information (and short hash ID works)

Thanks!

pdcastro commented 4 years ago

@peterblazejewicz, thank you for this suggestion. It's a nice idea! Normally we tend to prioritise work on fixing bugs and adding high-demand features, but every now and then there's a push / project on usability and then this kind of suggestion gets implemented. And of course, anyone in the community is welcome to contribute at any time!