0.1.4 • Published 5 months ago

haber-cli v0.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

HaberUI CLI

A command-line interface for adding HaberUI components to your React projects.

Installation

# Using npm
npm install -g haber-cli

# Using yarn
yarn global add haber-cli

# Using pnpm
pnpm add -g haber-cli

Or use without installing globally:

npx haber-cli <command>

Usage

Initialize a project

Set up HaberUI configuration in your project:

haber init

This creates a haber.json file with your preferences for component installation.

List available components

View all components available for installation:

haber list

Add a component

Install a specific component:

haber add <component-name>

For example:

haber add thinking-state

Commands

CommandDescription
haber initInitialize HaberUI configuration
haber listList all available components
haber add <component>Add a component to your project

Configuration

The haber.json file contains your project configuration:

{
  "$schema": "https://haberui.com/h/schema.json",
  "style": "tailwind",
  "tailwind": true,
  "componentDir": "components/haber-ui",
  "importPath": "@/components/haber-ui",
  "registry": "https://haberui.com/h"
}
OptionDescription
styleStyling solution (tailwind or css)
tailwindWhether to use Tailwind CSS
componentDirWhere components will be installed
importPathImport alias for components
registryComponent registry URL

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT

0.1.4

5 months ago

0.1.3

5 months ago

0.1.2

5 months ago

0.1.1

5 months ago

0.1.0

5 months ago