How to manually add users and email in console mode?

This is helpful! Is there a way to assign the user(s) to groups from command?