IBM / lmctl

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

lmctl login to choose a default name for the environment instead of the static string default #188

Open dvaccarosenna opened 1 year ago

dvaccarosenna commented 1 year ago

Currently any login command calls without the --name option will use the value of 'default' as the name of the environment.

Running login for a subsequent environment will attempt to use the same name and ask the user if they want to overwrite it.

Alternatively a user must specify --name to give their environment a unique name.

Potential issues with this:

Suggested change: Use a default based on the environment parameters, including the hostname and potentially the user/client

E.g.

lmctl login lm.example.com --username dan

result: dan@lm.example.com
lmctl login lm.example.com --client-id MyClient

result: MyClient@lm.example.com