bearnie

CLI

Add components to your project from the command line.

Initialize your project

npx bearnie init
npx bearnie init

Sets up the cn utility, path aliases, and theme variables. Run this once before adding components.

Add components

npx bearnie add button
npx bearnie add button

Add multiple components at once:

npx bearnie add button card dialog tabs
npx bearnie add button card dialog tabs

Add everything:

npx bearnie add --all
npx bearnie add --all

Components are copied to src/components/bearnie/. Required utilities go to src/utils/. You own the code.

List available components

npx bearnie list
npx bearnie list

Shows all components grouped by category. Use --json for machine-readable output.

Options

FlagDescription
-y, --yesSkip prompts, overwrite existing files
-a, --allAdd all components
--cwd <path>Set working directory
--jsonOutput as JSON (list command)