Login

Email / Password

1

Run the login command with your ale endpoint URL

ale login <URL>
# ale login https://app.ale-test.com/api
2

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

API Key

1

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
2

When authentication is successful, you'll see the following message

👉 Connecting to "https://app.ale-test.com/api"
👋 Hello, admin / admin@ale-test.com

Check Current Session

1

Run this command in an environment where ale is already logged in

ale whoami
2

Your current logged-in account will be displayed in the terminal

admin@ale-test.com at https://app.ale-test.com/api

Logout

1

Run the logout command

ale logout
2

Confirm successful logout

Logged out.