scaleway-cli icon indicating copy to clipboard operation
scaleway-cli copied to clipboard

Add an option to open the web console for a given resource

Open remyleone opened this issue 4 years ago • 1 comments

Description

Sometimes when I'm using the CLI I would like to quickly open a web browser to go to the console on a given resource page. Could it be possible for each command to have a default webpage where the CLI send the user when passed a --web option.

How this functionality would be exposed

  • scw instance --web would open https://console.scaleway.com/instance
  • scw rdb instance list --web would open https://console.scaleway.com/rdb/instances/ with the right zone

References

Version

Version 2.3.1 BuildDate unknown GoVersion go1.16.4 GitBranch unknown GitCommit unknown GoArch amd64 GoOS darwin

remyleone avatar Sep 27 '21 14:09 remyleone

Is the structure of the url always https://console.scaleway.com/arg1/arg2/argN or does it need to be hardcoded for each command?

lepasq avatar Oct 02 '21 15:10 lepasq