harukit
v1.2.1
Published
CLI tool for Harukit UI components
Maintainers
Readme
CLI Commands
Harukit provides a powerful command-line interface for managing your UI components. All commands support automatic package manager detection and dependency installation.
Main Commands
init - Initialize Harukit
Set up Harukit in your project with automatic dependency installation.
# Interactive setup
npx harukit@latest init
# Skip prompts and use defaults
npx harukit@latest init --yesWhat it does:
- Creates
harukit.jsonconfiguration file - Sets up
components/andlib/directories - Generates utility functions in
lib/utils.ts - Updates global CSS with Tailwind variables
- Automatically installs all required dependencies using your package manager
Package Manager Support:
npx harukit@latest init # npm
pnpm dlx harukit@latest init # pnpm
yarn dlx harukit@latest init # yarn
bunx --bun harukit@latest init # bunadd - Add Components
Add one or more components to your project with automatic dependency resolution.
# Add single component
npx harukit@latest add button
# Add multiple components
npx harukit@latest add button card input
# Overwrite existing components
npx harukit@latest add button --overwriteOptions:
--yes- Skip prompts and use defaults--overwrite- Replace existing component files
What it does:
- Downloads component files to your
components/directory - Automatically installs component-specific dependencies
- Resolves and installs peer dependencies
- Shows installation progress
remove - Remove Components
Clean up components and unused dependencies from your project.
# Remove single component
npx harukit@latest remove button
# Remove multiple components
npx harukit@latest remove button card inputWhat it does:
- Removes component files from
components/directory - Identifies unused dependencies
- Prompts to clean up orphaned packages
- Updates project configuration
list - Show Available Components
Display all components you can add to your project.
npx harukit@latest listOutput includes:
- Component names
- Brief descriptions
- Categories (Form, Layout, Feedback, etc.)
info - Get Component Information
Show detailed information about Harukit or specific components.
# General Harukit information
npx harukit@latest info
# Specific component details
npx harukit@latest info button
# Multiple component info
npx harukit@latest info button cardupdate - Check for Updates
Check for newer versions and get update instructions.
npx harukit@latest updateQuick Examples
Complete Setup Flow:
# 1. Initialize in existing project
npx harukit@latest init
# 2. See what's available
npx harukit@latest list
# 3. Add the components you need
npx harukit@latest add button card input tooltip
# 4. Start building!Package Manager Detection: Harukit automatically detects and uses your preferred package manager:
- CLI Detection: Uses the package manager from your command (npx → npm, pnpm dlx → pnpm)
- Lock File Detection: Falls back to package manager indicated by lock files
- System Default: Uses bun if available, otherwise npm
No Manual Dependency Management:
All init and add commands automatically handle:
- Installing required peer dependencies
- Resolving version conflicts
- Using your project's package manager
- Showing installation progress
Global Options
All commands support:
--help- Show command help--version- Show Harukit version
Need Help?
- Documentation: https://harukit-ui-docs.vercel.app/
- GitHub: https://github.com/Hareesh108/harukit-ui
- Issues: Report bugs or request features
