> ## Documentation Index
> Fetch the complete documentation index at: https://docs.seiton.online/llms.txt
> Use this file to discover all available pages before exploring further.

# CLI

> Query Seiton from the terminal. Same permissions as the API and MCP.

Query analytics and manage websites, tokens, and expenses from the terminal. Useful for AI agents and LLMs.

The CLI is a wrapper around the Seiton API. From a backend, call the [API](/developers/api) directly.

## Install

```bash theme={null}
npx @seiton/cli login
# or
npm install -g @seiton/cli
```

That installs a binary named `seiton`.

## Authenticate

```bash theme={null}
seiton login
```

Opens **Settings → API / MCP**, then paste the `sei_` token. It is saved at `~/.config/seiton/config.json`.

```bash theme={null}
echo $SEITON_TOKEN | seiton login
seiton login --token sei_xxx
```

## Commands

Omit `--project` and the CLI asks, or uses the only website in scope.

* `seiton projects list`
* `seiton health`
* `seiton briefing`
* `seiton analytics [--period 7d]`
* `seiton revenue`
* `seiton churn`
* `seiton seo`
* `seiton integrations list`
* `seiton integrations sync --provider stripe`
* `seiton tokens list`

## Log out

```bash theme={null}
seiton logout
```

Removes the saved token from `~/.config/seiton/config.json`.

## Global flags

* `--json` — compact JSON, for agents. Example: `seiton --json projects list`
* `--verbose` — request URL and status on stderr
* `--project <id>` — website id

## Environment

* `SEITON_TOKEN` — override the saved token
* `SEITON_API_BASE` — default `https://seiton.app/api/v1` (use `http://localhost:3000/api/v1` in development)
