# Commands

> Archee Docs page "Commands". Index of all pages: https://docs.archee.studio/llms.txt. Connect your agent: https://docs.archee.studio/start/agent-setup.md.

> Every archee command, its environment variables and its exit codes.

Source: https://docs.archee.studio/cli/commands

## Commands

- `archee connect [FOLDER]` serves a folder (default: this one) until Ctrl-C, signing in if needed. `--name NAME` sets the name shown in Archee; the default comes from your computer and folder names.
- `archee login` signs you in with a short code in your browser and keeps you signed in.
- `archee whoami` shows who is signed in.
- `archee logout` ends the sign-in.
- `archee update` installs the latest release over this one.

Every command takes `--json`. Plain `archee` shows your sign-in status and the next step.

## Environment

- `ARCHEE_TOKEN` signs in with a token instead of the browser.
- `ARCHEE_URL` points to another server. The default is `https://app.archee.studio`.

The token and server are never flags, because arguments show up in process lists.

## Exit codes

`0` means success, `1` an error, `2` a usage error and `3` that sign-in is needed.

## Source

The CLI is open source under Apache-2.0: [Archee-Studio/archee-cli](https://github.com/Archee-Studio/archee-cli).
