This is a command line tool for Justd. You can see the documentation at here.
You need to do this in your new project directory. And make sure you have installed Tailwind CSS and React.
npx justd-cli@latest init
With init
command, it will identify your project type, install the necessary packages, asking for what theme you want to use, and create a justd.json
file.
After that, you can run the following command to start adding new components.
npx justd-cli@latest add <component-name>
You can change the theme by running the following command.
npx justd-cli@latest theme
If you want to see the difference between your current components and the new one, you can run the following command.
npx justd-cli@latest diff
It will show you the difference between the current and the new component. And it will also ask you to confirm the changes.