Guide for how to authenticate with the ale CLI using email/password or API key
Run the login command with your ale endpoint URL
ale login <URL> # ale login https://app.ale-test.com/api
When your email and password match, you'll see the following message
👉 Connecting to "https://app.ale-test.com/api" ? Email or username admin@ale-test.com ? Password [hidden] 👋 Hello, admin / admin@ale-test.com
Run the login command by providing the ale endpoint as a parameter and the API key as an option
ale login <URL> -t [API key] # ale login https://app.ale-test.com/api
When authentication is successful, you'll see the following message
👉 Connecting to "https://app.ale-test.com/api" 👋 Hello, admin / admin@ale-test.com
Run this command in an environment where ale is already logged in
ale whoami
Your current logged-in account will be displayed in the terminal
admin@ale-test.com at https://app.ale-test.com/api
Run the logout command
ale logout
Confirm successful logout
Logged out.