Get started with the Alesia CLI

Install the alesia command, start Alesia Core headless, sign in from the terminal, and run your first commands.

DM
Danish Mir
Written By Danish MirLast updated 2 days ago

The alesia command lets you check and manage Alesia Core on your device from the terminal. It talks to Alesia Core running on the same machine, so Alesia Core must be running first.

Install

The CLI works on macOS and Linux. If you already use the Alesia desktop app, the alesia command is already in your terminal, so skip to Start and connect.

curl -fsSL https://downloads.getalesia.com/install.sh | sh

To install beta releases instead, run:

curl -fsSL https://downloads.getalesia.com/install.sh | sh -s -- --beta

Check that the command is available:

alesia --version

Start and connect

Start Alesia Core in headless mode:

alesia start

Log in to your account:

alesia auth login

Check the status:

alesia status

Sign in

The sign-in opens a page in your browser. After you approve the device, copy the code or the full callback URL and paste it into the terminal prompt.

To open the sign-in page automatically, use alesia auth login --open.

Confirm that you are signed in:

alesia auth status

On a machine without a browser, open the URL that alesia auth login prints on another device, then run alesia auth login --callback "<callback URL>" with the callback URL you get back.

Try a few commands

List the policies that apply to this device:

alesia policies

Show the usage limits for this device:

alesia limits

List any warnings waiting for an answer:

alesia warnings

Scripts and automation

Add --json before any command to print machine-readable output:

alesia --json policies

To point the command at a different Alesia Core address, set ALESIA_URL or pass --host. The default is http://127.0.0.1:47600.

Next steps

See Alesia CLI commands for every command, flag and option.

Need help?

Contact [EMAIL_JBNU7XSK].

Was this helpful?

Your feedback shapes what we write next.