alpha-kit
v0.0.4
Published
Advanced CLI for Alpha UI components & premium blocks - Next-generation component library for modern web applications
Maintainers
Readme
Alpha CLI
A CLI tool for adding Alpha UI components and blocks to your project.
Installation
# Install globally
npm install -g @alpha
# Or use with npx
npx @alphaUsage
Initialize a project
alpha initThis will:
- Create a
components.jsonconfiguration file - Install required dependencies
- Set up your project for using Alpha UI components
Add components or blocks
# Add a specific component
alpha add button
# Add a specific block
alpha add hero-section
# Add multiple items
alpha add button card hero-section
# Add all available components and blocks
alpha add --all
# Add with custom path
alpha add button --path src/componentsList available components and blocks
# List all items
alpha list
# List only components
alpha list --type components
# List only blocks
alpha list --type blocks
# Search for specific items
alpha list --search buttonView component details
# View component details
alpha view button
# View block details
alpha view hero-section
# Specify type
alpha view button --type componentsSearch components and blocks
# Search for items
alpha search button
# Search with type filter
alpha search form --type componentsConfiguration
The CLI uses a components.json file to configure your project:
{
"style": "default",
"rsc": true,
"tsx": true,
"tailwind": {
"config": "tailwind.config.js",
"css": "app/globals.css",
"baseColor": "slate",
"cssVariables": true,
"prefix": ""
},
"aliases": {
"components": "@/components",
"utils": "@/lib/utils",
"ui": "@/components/ui",
"lib": "@/lib",
"hooks": "@/hooks"
},
"iconLibrary": "lucide"
}Available Commands
init- Initialize your projectadd- Add components or blockslist- List available components and blocksview- View component or block detailssearch- Search for components and blocks
Options
-y, --yes- Skip confirmation prompts-o, --overwrite- Overwrite existing files-c, --cwd <cwd>- Working directory-a, --all- Add all available items-p, --path <path>- Custom path for components-s, --silent- Mute output-t, --type <type>- Filter by type (components, blocks, all)-s, --search <search>- Search term
License
MIT
