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 [email protected] ? Password [hidden] 👋 Hello, admin / [email protected]
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 / [email protected]
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
[email protected] at https://app.ale-test.com/api
Run the logout command
ale logout
Confirm successful logout
Logged out.