@shadx/cli
v1.0.6
Published
A CLI tool to generate UI components for your project
Downloads
484
Readme
Shadcn-Extension
A CLI (inspired by shadcn-ui) for adding components to your project, making it easier to integrate and manage UI components within your codebase.
Installation
To get started with the shadcn-Extension
CLI, ensure you have npx
installed. This tool allows you to run packages directly from npm without globally installing them.
NOTE
ALL TYPES PACKAGES FOR NOW NEEDS TO BE INSTALLED MANUALLY
Usage
Initializing a New Project
Use the init
command to initialize dependencies for a new project. This command sets up everything you need, including installing necessary dependencies, adding the cn
utility, configuring tailwind.config.js
, and setting up CSS variables.
Initialize Dependencies
Run the following command to initialize the project:
npx shadcn-ui init
Initialize Shadcn-Extension CLI
Next, set up your project with the shadcn-extension CLI:
npx @shadx/cli init
Adding Components
Use the add
command to add components to your project. This command installs the required dependencies and integrates the specified component into your project.
Add a Specific Component
To add a specific component, specify the component name:
npx @shadx/cli add [component]
Example:
Adding a
tree-view
component:npx @shadx/cli add tree-view
View Available Components
If you want to see a list of all available components, run the
add
command without any arguments:npx @shadx/cli add
This will display a list of components that you can add to your project.
Full Documentation
For detailed documentation, including installation guides, component usage, and more, visit the shadcn-Extension Documentation.
License
This project is licensed under the MIT license.
Contributing
Contributions are welcome! If you have suggestions for improvements, please open an issue or submit a pull request on the GitHub repository.