0.0.1 • Published 5 months ago
morpho-ui-cli v0.0.1
MorphoUI CLI
A command-line interface for easily adding React components from the MorphoUI component library to your project.
Installation
# Install globally
npm install -g morpho-ui-cli
# Or use with npx
npx morpho-ui-cli [command]
Usage
List Available Components
morpho list
This command lists all available components from the component library.
Get a Component
morpho get <componentName>
This will fetch the component and place it in the ./components
directory by default.
Options
-d, --dir <directory>
: Specify the target directory (default: "./components")-r, --repo <url>
: Specify a custom GitHub repository URL (default: "https://github.com/dev-jaysharma/StorageForComponents")
Example:
morpho get Button -d src/ui/elements
Development
- Clone this repository
- Run
npm install
- Link the package for local development:
npm link
- Now you can use
morpho
command in your terminal
Repository Structure
By default, the CLI will search for components in the following locations:
/components/
/src/components/
- Root directory
License
MIT
0.0.1
5 months ago