# @alignui-kit/cli

AlignUI component installer CLI.

## Usage

```bash
npx @alignui-kit/cli setup --project /absolute/path/to/project
npx @alignui-kit/cli list --query accordion
npx @alignui-kit/cli add ui/accordion --project /absolute/path/to/project
```

## Commands

- `setup`: create `alignui.config.json` in target project
- `list`: list available components from bundled registry
- `add`: install one component and its transitive component dependencies

## Config file

`alignui.config.json` lets you customize file destination mapping and import rewrite mapping.

## Template source in development

When this CLI runs inside the monorepo, `add` reads source files directly from the workspace root `components` tree first. This keeps `components` as the single source of truth during local development.

In published package usage, it falls back to bundled templates under `packages/cli/templates/components`.

To force a custom source root, set:

```bash
ALIGNUI_REGISTRY_SOURCE_ROOT=/absolute/path/to/source-root
```
