npui v2.0.2
🧩 npui cli
npui is a command-line interface (CLI) tool designed for easy integration of reusable UI components into your projects. Built with simplicity and flexibility in mind, npui allows developers to quickly add, update, remove, and list components from the NextProduction repository directly in their own projects.
Features
- Download Components: Fetch UI components directly from the GitHub repository.
- Update Components: Keep your components up to date with the latest changes.
- Remove Components: Easily delete components from your project.
- List Components: View all downloaded components at a glance.
- Version Info: Check the current version of
npui. - Help Command: Get usage instructions directly from the CLI.
Installation
You can install npui globally or use it directly with npx without installation.
Using npx
To use npui directly, run the following command:
npx npui <command> <ComponentName>Installing Globally
If you prefer to install npui globally, you can run:
npm install -g npuiUsage
Here's a breakdown of available commands:
add <ComponentName>
Download a specified component to your project.
npx npui add Tableupdate <ComponentName>
Update an existing component to the latest version.
npx npui update Tableremove <ComponentName>
Remove a specified component from your project.
npx npui remove Tablelist
List all components downloaded to your project.
npx npui listversion
Display the current version of npui.
npx npui versionhelp
Show usage instructions for npui.
npx npui helpExample
Here's a complete example of how to use npui:
Add a component:
npx npui add ButtonList downloaded components:
npx npui listUpdate a component:
npx npui update ButtonRemove a component:
npx npui remove Button
Contribution
Contributions are welcome! If you have suggestions for improvements or want to report bugs, feel free to create an issue or submit a pull request on the GitHub repository.
Acknowledgments
- Thanks to Node.js for providing a powerful platform for building command-line applications.
- Inspired by the open-source community for fostering collaboration and innovation.