A command-line tool for quickly setting up and managing React/Next.js projects with pre-built components.
npm install -g xerck-cli
- Node.js project with a valid package.json file
- NPM or Yarn package manager
xerck-cli <command> [options]
-
init
: Initialize a Xerck project structure in your existing Node.js project- Creates components and lib directories
- Sets up a globals.css file in the app directory
- Installs necessary dependencies (clsx, tailwind-merge)
-
add <name>
: Add a pre-built component to your project- Downloads component from the Xerck component library
- Automatically creates the component file in your components directory
-
version
: Display the current version of Xerck CLI
# Navigate to your Node.js project directory
cd your-project
# Initialize Xerck
xerck-cli init
# Add a button component
xerck-cli add button
# Add a card component
xerck-cli add card
After initialization, your project will have the following structure:
your-project/
├── components/ # Your UI components
├── lib/
│ └── utils.ts # Utility functions
└── app/
└── globals.css # Global styles
Current version: 1.0.4