# Install entrepta

> The CLI detects the framework and writes the tokens, the cn helper and a config. Then add components one by one.

## Requirements

- React: 19 or newer
- Framework: Next.js 15 (App or Pages Router) or Vite
- Tailwind CSS: v4, required: components are styled with its classes
- TypeScript: 5.x

## 1. Run init

```bash
npx @entrepta/cli@latest init --theme=entrepta
```

## What init writes

- `app/globals.css`: Tokens, reset, fonts and the type scale. src/index.css in Vite
- `lib/utils.ts`: The cn() helper (clsx and tailwind-merge), aware of the type scale
- `entrepta.json`: Config: theme, paths, aliases

## 2. Add components

```bash
npx @entrepta/cli@latest add button card dialog
```

For a project-specific guide, build an AGENTS.md at https://entrepta.vercel.app/?agents=open.
