Docs
CLI

CLI

Use the CLI to add components to your project.

init

There is no init command installs dependencies, you should install shadcn/ui fist and should init it.

pnpm dlx shadcn@latest init

add

Use the add command to add components and dependencies to your project.

pnpm dlx kodkafa@latest add [component]

You will be presented with a list of components to choose from:

Which components would you like to add? › Space to select. A to toggle all.
Enter to submit.

◯  re-form
◯  re-input
◯  re-submit

Options

Usage: kodkafa add [options] [components...]

add a component to your project

Arguments:
  components         the components to add or a url to the component.

Options:
  -y, --yes          skip confirmation prompt. (default: false)
  -o, --overwrite    overwrite existing files. (default: false)
  -c, --cwd <cwd>    the working directory. defaults to the current directory.
  -a, --all          add all available components. (default: false)
  -p, --path <path>  the path to add the component to.
  -h, --help         display help for command

Monorepo

In a monorepo, you can specify the path to your workspace with the -c or --cwd option.

pnpm dlx kodkafa@latest init -c ./apps/www

or

pnpm dlx kodkafa@latest add re-form -c ./apps/www