Docs
CLI
CLI
Use the CLI to add components to your project.
init
Use the init
command to initialize configuration and dependencies for your existing project.
The init
command installs dependencies, adds a theme.ts
file with all the CSS variables, and configures lotru.config.json
file with your project settings.
You will be asked a few questions to configure lotru.config.json
:
add
Use the add command to add components and dependencies to your project.
If a component has dependencies, they will be installed automatically.
If you do not provide a component, you will be prompted to select one from a list.
If you want to add multiple components at once, you can separate them with a space:
Or use the --all
flag to add all components: