elij-ui-library-cli
v1.0.0
Published
CLI for discovering Elij UI components
Readme
Elij UI Library CLI
Discover components, registry metadata, props, and Storybook stories from the published elij-ui-library package.
Install
Run commands without a global install:
npx -y elij-ui-library-cli listOr install it in a project:
npm install -D elij-ui-library-cliThe package provides three equivalent command names:
elij-ui
elij-ui-library
elij-ui-library-cliThe short elij-ui command is recommended.
Commands
List all components
npx -y elij-ui-library-cli listExample output:
Button — actions
Card — layout
EventCarousel — contentSearch components
Search component names, categories, and descriptions:
npx -y elij-ui-library-cli search button
npx -y elij-ui-library-cli search carousel
npx -y elij-ui-library-cli search whatsappInspect one component
npx -y elij-ui-library-cli info Button
npx -y elij-ui-library-cli info EventCarousel
npx -y elij-ui-library-cli info WhatsAppButtonExample output:
Name: EventCarousel
Category: content
Description: A responsive carousel for event images.
Import: EventCarousel
Story: EventCarousel/Default
Props: items, autoplay, interval, showArrowsComponent names are case-insensitive, so info button and info Button are equivalent.
Check the registry
npx -y elij-ui-library-cli doctorExample output:
Registry package: elij-ui-library
Registry version: 1.0.0
Components: 54
Status: readyTypical workflow
search → info → copy the import and props → open the Storybook storyFor example:
npx -y elij-ui-library-cli search pricing
npx -y elij-ui-library-cli info CardThen import the component from your application:
import { Card } from "elij-ui-library";Troubleshooting
Command not found
Use npx -y elij-ui-library-cli <command>, or install the package globally:
npm install -g elij-ui-library-cliComponent not found
Check the spelling with list or search. Component names are case-insensitive, but partial names only work with search.
Registry is not ready
Run doctor first and check that npm can download elij-ui-library. If you are using a private registry, verify your npm registry and login settings.
Development
From the monorepo root:
corepack yarn workspace elij-ui-library-cli build
corepack yarn workspace elij-ui-library-cli test