Prerequisites
- Node.js: Version 18.0.0 or higher.
- Project Setup: Ensure your project has Tailwind CSS and import aliases (
@/*) configured. If starting fresh, run:
Step 1: Install your first component
Run the CLI with your package manager of choice. No global install is necessary:- Fetch component schema and animation code from
https://ui.soralabs.studio/r/text-effect.json. - Automatically resolve required npm packages (e.g.
motion,clsx,tailwind-merge). - Place component files into your project under
components/sora-ui/. - Run your package manager install command in the background.
Step 2: Interactive picker
If you want to explore available components visually, invokeadd without specifying a component name:
Space to select multiple components, and hit Enter to install.
Step 3: Run diagnostics
Rundoctor at any time to verify that your project environment is fully compatible:
- Node.js runtime version compatibility (
>= 18). - Existence and configuration of
tailwind.config.*. - Detection of the active package manager and lockfile.
- Registry network connectivity and latency.
- Whether a newer version of
@soralabs/cliis available.