# Cloudwick Form Builder CLI

A CLI tool for adding Cloudwick Form Builder components to your project, similar to shadcn/ui.

## Installation

```bash
npm install -g @cloudwick-formick/cli
```

Or use it directly with npx:

```bash
npx @cloudwick-formick/cli
```

## Usage

### Initialize your project

```bash
npx cloudwick-ui init
```

This will:
- Create a `cloudwick-ui.json` configuration file
- Set up the necessary directory structure
- Create utility files

### Add components

```bash
# Add a specific component
npx cloudwick-ui add form-builder

# Add multiple components
npx cloudwick-ui add form-builder form-previewer

# Interactive selection
npx cloudwick-ui add
```

### List available components

```bash
npx cloudwick-ui list
```

## Configuration

The CLI uses a `cloudwick-ui.json` file in your project root:

```json
{
  "style": "default",
  "rsc": false,
  "tsx": true,
  "tailwind": {
    "config": "tailwind.config.js",
    "css": "src/app/globals.css",
    "baseColor": "slate",
    "cssVariables": true
  },
  "aliases": {
    "components": "@/components",
    "utils": "@/lib/utils",
    "ui": "@/components/ui"
  }
}
```

## Commands

- `init` - Initialize cloudwick-ui in your project
- `add [components...]` - Add components to your project
- `list` - List all available components

## Options

- `-y, --yes` - Skip confirmation prompts
- `-o, --overwrite` - Overwrite existing files
- `-c, --cwd <cwd>` - The working directory
- `-p, --path <path>` - The path to add the component to

## Examples

```bash
# Initialize with default settings
npx cloudwick-ui init -y

# Add form builder component
npx cloudwick-ui add form-builder

# Add component and overwrite existing files
npx cloudwick-ui add form-builder --overwrite

# Add component to specific directory
npx cloudwick-ui add form-builder --cwd ./my-project
```