Get started with the Airdress CLI
Install the CLI first (Install), then sign in. Everything else follows from which airdress a command acts on.
Sign in
Section titled “Sign in”airdress auth loginYour browser opens on the account picker. Every login asks which account, so a second profile never silently inherits the one the browser is already signed in to. When it is done, the CLI prints which account the profile got.
On a machine without a browser, use the device flow and finish the sign-in elsewhere:
airdress auth login --device # prints a URL and a codeairdress auth login --no-browser # the same, and never tries to open oneCheck and end a sign-in:
airdress auth status # a read; it never refreshes or writesairdress auth logout # ends the session at the identity provider, then forgets the tokensauth status says authenticated while a refresh token is on file, even if
the access token beside it has lapsed; it renews on next use. expired
means a browser login is really needed.
Profiles: one account on one hub
Section titled “Profiles: one account on one hub”The default hub is https://account.airdress.co; the default profile is
created on your first login.
airdress auth login --profile work # a second account, side by sideairdress profile create staging --endpoint https://staging.example.comairdress profile use work # make it the active oneairdress use work # the same, shorterairdress profile listairdress profile show # the active profile, credentials redactedMost commands take --profile <name> (or -p) to act as another profile
once. Where profiles and tokens are kept is in
Keys and storage.
Which airdress a command acts on
Section titled “Which airdress a command acts on”Most commands act on a current airdress, resolved in this order, highest first:
-
--airdress <name>or-A <name>on the command line. A name, an id or the full address all work. -
AIRDRESS_NAMEin the environment. -
A
.airdressfile in the working directory or a parent, holding the name. Off by default; opt in once in~/.airdress/preferences.toml:[discovery]directory_marker = true -
The airdress pinned on the active profile, set with
airdress airdress use <name>or the shortairdress a use <name>. The pin is checked against the hub when set, and clears itself if the airdress later disappears.
With none of these, the command stops and points you at
airdress airdress list.
When the airdress came from the environment, a marker or the pin, the CLI
says so on stderr: → acting on home (source: profile-default). Silence it
with --quiet or AIRDRESS_QUIET=1. Under --output json it is always
silent, and the resolved airdress travels inside the JSON instead.
airdress airdress list # the airdresses you ownairdress a use home # pin oneairdress airdress probe # how the hub reaches it: direct or relayedairdress -A office airdress probe # one command on anotherairdress current # "work / home (source: profile-default)"airdress current --output json is built for shell prompts.
Where to next
Section titled “Where to next”- Functions: put code behind your airdress.
- Shells: a terminal on one of your machines.
- Claude Code: the same reach from an editor, over MCP.
- Devices, machines and homes: what is attached to your airdress, and how it got there.
- Scripting: JSON output and exit codes for automation.