Get started with the Alesia CLI
Install the alesia command, start Alesia Core headless, sign in from the terminal, and run your first commands.
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 | shTo install beta releases instead, run:
curl -fsSL https://downloads.getalesia.com/install.sh | sh -s -- --betaCheck that the command is available:
alesia --versionStart and connect
Start Alesia Core in headless mode:
alesia startLog in to your account:
alesia auth loginCheck the status:
alesia statusSign 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 statusOn 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 policiesShow the usage limits for this device:
alesia limitsList any warnings waiting for an answer:
alesia warningsScripts and automation
Add --json before any command to print machine-readable output:
alesia --json policiesTo 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.
