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

# CLI

> The whole API from a terminal.

# CLI — `lupin`

```bash theme={null}
export LUPIN_API=http://localhost:18887 LUPIN_API_KEY=sk_demo_1234567890
bun packages/cli/src/cli.ts agent sign-up --human-email you@e.com --username ops
bun packages/cli/src/cli.ts agent verify --otp-code 123456 --api-key sk_live_…
bun packages/cli/src/cli.ts inboxes create --username support
bun packages/cli/src/cli.ts emails send --inbox-id in_… --to u@e.com --subject Hi --text "…"
bun packages/cli/src/cli.ts threads list --inbox-id in_… --q renewal
bun packages/cli/src/cli.ts drafts create --inbox-id in_… --to u@e.com --subject "…"
bun packages/cli/src/cli.ts domains verify --domain-id dom_…
bun packages/cli/src/cli.ts webhooks create --url https://you.dev/hook --events email.received,message.sent
bun packages/cli/src/cli.ts projects create --name tenant-a
bun packages/cli/src/cli.ts keys create --name ci
```

`lupin --help` prints everything. Every mutating call prints the created
object as JSON — pipe it into `jq`, scripts and cron jobs.
