CLI for managing UI components
npm install pragatiui-cliPragatiUI CLI is a powerful command-line interface tool designed to streamline the process of adding and managing UI components in your React projects. It allows you to easily integrate components from the PragatiUI library into your project, manage dependencies, and keep your UI consistent and up-to-date.
- PragatiUI CLI
- 🚀 Introduction
- 📋 Table of Contents
- 💻 Installation
- 🛠 Usage
- Initialization
- Adding Components
- Listing Available Components
- ⚙️ Configuration
- 🔧 Troubleshooting
- 👥 Contributing
- 📄 License
To install PragatiUI CLI globally on your system, run the following command:
``bash`
npm install -g pragatiui-cli
This will make the pragatiui-cli command available in your terminal.
Before using PragatiUI CLI in your project, you need to initialize it. Run the following command in your project root:
`shellscript`
npx pragatiui-cli init
This command will prompt you for some configuration options:
- Component path: Where you want to add the components (default: src/components/ui)src/app/globals.css
- CSS path: Location of your global CSS file (default: )node_modules/@pragatiui/ui/src
- PragatiUI path: Path to the PragatiUI package (default: )
The CLI will create a pragatiui.config.json file in your project root with these settings.
To add a component to your project, use the add command followed by the component name(s):
`shellscript`
npx pragatiui-cli add button card
This command will:
1. Fetch the component(s) from the PragatiUI repository
2. Add the component file(s) to your specified component path
3. Install any necessary dependencies
4. Update your global CSS file with PragatiUI styles (if applicable)
You can add multiple components at once by listing them after the add command.
To see a list of all available components in the PragatiUI library, use the list command:
`shellscript`
npx pragatiui-cli list
This will display a list of components that you can add to your project.
The pragatiui.config.json file in your project root contains your CLI configuration. You can manually edit this file if needed. The configuration options are:
- componentPath: Where components will be added in your projectcssPath
- : Location of your global CSS filepragatiUIPath
- : Path to the PragatiUI package
If you encounter any issues while using PragatiUI CLI, try the following:
1. Ensure you have the latest version of the CLI installed:
`shellscript`
npm install -g pragatiui-cli@latest
2. Check your internet connection, as the CLI needs to fetch components from the GitHub repository.
3. Verify that your pragatiui.config.json file exists and contains the correct paths.list
4. If you're having issues with a specific component, try running the command to ensure it's available in the PragatiUI library.sudo
5. For permission-related errors, try running the CLI with elevated privileges (e.g., using on Unix-based systems).
If problems persist, please open an issue on our GitHub repository with details about the error and your environment.
We welcome contributions to PragatiUI CLI! If you'd like to contribute, please follow these steps:
1. Fork the repository
2. Create a new branch for your feature or bug fix
3. Make your changes and commit them with a clear commit message
4. Push your changes to your fork
5. Submit a pull request to the main repository
Please ensure your code adheres to our coding standards and includes appropriate tests.
PragatiUI CLI is released under the MIT License. See the LICENSE file for more details.
---
For more information, visit our official documentation or join our community forum for support and discussions.
Happy coding with PragatiUI! 🎨✨
`plaintext``
This README provides a comprehensive guide for users of the pragatiui-cli. It covers installation, usage instructions for all commands, configuration details, troubleshooting tips, contribution guidelines, and licensing information. The use of emojis and clear section headers makes it visually appealing and easy to navigate.