Alesia CLI commands

Reference for every alesia command: sign-in, policies, limits, warnings, incidents, config, sync, logs, updates and uninstall.

DM
Danish Mir
Written By Danish MirLast updated 2 days ago

This page lists every alesia command, what it does and the flags it accepts. For setup, see Get started with the Alesia CLI.

Global options

These options work with every command.

Option

What it does

--host <url>

Address of the Alesia Core app on this device. Default: http://127.0.0.1:47600. Can also be set with the ALESIA_URL environment variable.

--json

Print machine-readable JSON instead of formatted output.

status

Show whether Alesia Core is running, whether this device is signed in, its sensors and the MITM status.

alesia status

Flag

What it does

--fresh

Skip the short status cache and fetch the status again.

auth

Sign this device in to Alesia or out of it.

auth login

alesia auth login --open

Flag

What it does

--open

Open the sign-in page in your browser.

--callback <url>

Complete sign-in with the callback URL (alesia://callback?code=...&state=...) or only its query string. Use this on a machine without an interactive prompt. Alias: --code.

auth logout

Sign out and revoke this device.

alesia auth logout

auth status

Show the current sign-in state and the signed-in email, if there is one.

alesia auth status

alesia login and alesia logout are shortcuts for alesia auth login and alesia auth logout.

sync

Pull the latest policies from Alesia and push pending usage, Shadow AI and incident data.

alesia sync

Flag

What it does

--flush-only

Send buffered usage events to Alesia and skip the policy pull.

config

View and change this device's configuration and feature consent.

config list

Show the current configuration and consent state.

alesia config list

config enable

Enable a feature. This also records your consent.

alesia config enable mitm

Argument or flag

What it does

<feature>

One of shadowai, mitm or telemetry. Enabling mitm also installs the local certificate authority.

--accept-terms

Accept the terms without the interactive prompt. Required when the command runs unattended.

-y, --yes

Skip the extra confirmation, for example before installing the local MITM certificate authority.

config disable

Disable a feature.

alesia config disable telemetry

Argument

What it does

<feature>

One of shadowai, mitm or telemetry.

config set

Change a preference.

alesia config set update-channel beta

Argument

What it does

<key>

auto-update or update-channel.

<value>

For auto-update: on or off. For update-channel: stable or beta.

policies

Show the policies that apply to this device.

policies list

alesia policies list --type model

Running alesia policies with no subcommand does the same as policies list.

Flag

What it does

--type <kind>

Show one kind of policy: all (default), model, file, egress, dlp, guardrails or hosts.

--refresh

Fetch the latest policies from Alesia before listing.

policies show

Show one policy.

alesia policies show <policy-id>

Argument

What it does

<id>

The policy ID. You can use the full ID or a unique prefix.

limits

Show the usage limits that apply to this device.

limits list

alesia limits list --provider anthropic

Running alesia limits with no subcommand does the same as limits list.

Flag

What it does

--refresh

Fetch the latest limits from Alesia before listing.

--provider <name>

Show the limit for one provider, for example anthropic or openai.

warnings

Show and answer warnings. A warning asks you to decide whether to continue an action that a policy flagged.

warnings list

List the warnings waiting for an answer.

alesia warnings list

Running alesia warnings with no subcommand does the same as warnings list.

warnings answer

Answer a warning by its key, which warnings list shows.

alesia warnings answer <key> continue

Argument or flag

What it does

<key>

The warning key, from alesia warnings list.

<decision>

continue or cancel.

--no-remember

For a continue answer, do not remember it for 15 minutes.

warnings watch

Watch for new warnings and answer each one as it arrives.

alesia warnings watch

incidents

Show policy incidents.

incidents list

alesia incidents list --limit 50 --hide-watched

Running alesia incidents with no subcommand does the same as incidents list.

Flag

What it does

--limit <n>

Maximum number of incidents to return. Default: 25.

--hide-watched

Hide incidents that only logged a watch, with no block or warning.

incidents show

Show one incident.

alesia incidents show <incident-id>

Argument

What it does

<id>

The incident ID.

logs

Show the notifications log for headless operation.

alesia logs --follow

Flag

What it does

-f, --follow

Keep printing new entries as they arrive.

-n, --lines <n>

Number of recent lines to show. Default: 20.

update

Check for an update to Alesia Core.

alesia update check

Running alesia update with no subcommand also checks for an update.

uninstall

Uninstall Alesia Core from this device.

alesia uninstall

Flag

What it does

--remove-data

Also remove local data and revoke the MITM root certificate authority.

-y, --yes

Skip the confirmation prompt.

completion

Print a shell completion script.

alesia completion zsh > ~/.zfunc/_alesia

Argument

What it does

<shell>

bash, zsh, fish, elvish or powershell.

Need help?

Contact [EMAIL_JBNU7XSK].

Was this helpful?

Your feedback shapes what we write next.