0.0.1 • Published 5 months ago

morpho-ui-cli v0.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

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

Example:

morpho get Button -d src/ui/elements

Development

  1. Clone this repository
  2. Run npm install
  3. Link the package for local development:
    npm link
  4. 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