fix bug that occured when trying to do managed logins
Revert "Revert "reference commit for envtool cli with script and CLI class""

This reverts commit 5011029998709ce42709b32fa3de96cb35a729d2.
Fix the return type of the listAllEnvironments method and add some context
to the output from the cli