IBM / lmctl

Cloud Pak for Network Automation (CP4NA) (previously ALM/TNCO) command line tool
Apache License 2.0
4 stars 19 forks source link

Command for showing current user or current token #154

Closed dvaccarosenna closed 1 year ago

dvaccarosenna commented 1 year ago

Is your feature request related to a problem? Please describe. It would be useful to clearly indicate the user currently logged in as with lmctl. It would also be useful to have a command to print the user's current token for use with other clients (e.g. curl).

Describe the solution you'd like An lmctl whoami command which can:

Describe alternatives you've considered lmctl get env --active shows the active environment but you can only see the user credentials with -o yaml or -o json, which also prints out the other parameters of that environment (this could be enhanced as well)