# CLI reference

Every command the lumioui binary ships.

## lumioui init

```sh
npx @lumioui/cli init [-y] [-c ./my-app] [--no-wire] [--no-agents]
```

Installs NativeWind, Reanimated, safe-area and SVG, copies the shared core into
`lib/lumioui`, writes the theme and config files that are missing, wires
`global.css` and `ThemeProvider` into your root file (as
`LumioThemeProvider`), and adds a LumioUI section to `AGENTS.md`.
`--no-wire` and `--no-agents` skip the last two.

## lumioui add

```sh
npx @lumioui/cli add button card
npx @lumioui/cli add pro/paywall-sheet
npx @lumioui/cli add --all
npx @lumioui/cli add badge --design glass
npx @lumioui/cli add button --overwrite --dry-run
```

Resolves registryDependencies topologically (Kahn sort), installs
nativeDeps with your package manager, writes `files[].target`. Prefix a
name with `pro/` for Pro items; they need a licence key (see `login`).
Prints the import line and docs link for each item you asked for.

| flag | effect |
|---|---|
| `--all`, `-a` | add every free component |
| `--design <design>` | resolve a family name to its design variant — `badge --design glass` installs `badge-glass` (values today: lumo, glass); falls back to the base component with a warning when the variant doesn't exist |
| `--overwrite`, `-o` | overwrite files that already exist in components/ui |
| `--dry-run` | resolve + print the plan without writing files |
| `--cwd <path>`, `-c` | run against a project other than process.cwd() |

## lumioui login, whoami, logout

```sh
npx @lumioui/cli login            # opens Account › License keys, then asks for the key
npx @lumioui/cli login --key lumio_…
npx @lumioui/cli whoami
npx @lumioui/cli logout
```

`login` checks the key with the registry and saves it for every project on the
computer (~/.config/lumioui/credentials.json, readable only by you). `whoami`
shows the account, plan and key source. In CI set `LUMIO_LICENSE_KEY`: an
environment key always wins over a saved login.

## lumioui skills

```sh
npx @lumioui/cli skills list
npx @lumioui/cli skills add lumioui                         # free
npx @lumioui/cli skills add lumio-taste lumio-taste-photo   # Pro (log in first)
npx @lumioui/cli skills add lumio-taste --agent cursor
```

Writes `.claude/skills/<name>/SKILL.md` (Claude Code), `.cursor/rules/<name>.mdc`
(Cursor, when the project has .cursor/ or with --agent cursor) and a list in
`AGENTS.md`. `--agent` takes claude, cursor, agents (comma-separated);
`--all` installs everything your plan includes.

## lumioui list

```sh
npx @lumioui/cli list
npx @lumioui/cli list --pro
npx @lumioui/cli list --type screen
```

Groups the catalog by section — screens by flow, blocks by parent
component, components by category. `--type` accepts `component`,
`block`, or `screen`.

## lumioui doctor

```sh
npx @lumioui/cli doctor
```

Checks the React Native project, NativeWind/Reanimated/safe-area/SVG, the
Babel preset, lumioui.json, components/ui, the theme files, that your root file
imports global.css and wraps the app in ThemeProvider, and, with a licence key,
that the registry accepts it and the account has Pro.
