Find a way to authenticate and store the authentication token in memory.
Start the session with an intuitive verb such as login, start or authenticate.
This should prompt the variables URI, E-mail address and Password and sign in the user subsequently, or throw an error if incorrect credentials are used.
If successful, the CLI should set a shared variable that is used throughout the session so the users don't have to specify credentials every time.
Find a way to authenticate and store the authentication token in memory.
Start the session with an intuitive verb such as
login,startorauthenticate.This should prompt the variables
URI,E-mail addressandPasswordand sign in the user subsequently, or throw an error if incorrect credentials are used.If successful, the CLI should set a shared variable that is used throughout the session so the users don't have to specify credentials every time.