Installation
ParticleUI ships its own CLI — particleui-cli — so you don't need any other tool. One command installs source-owned UI directly into your project.
Note
Setup steps
Install your first component
No setup required. Just run the CLI with the component name — it auto-detects your framework and writes the file directly into your project:
npx particleui-cli add buttonExpected result: src/components/ui/button.tsx is created in your app. See the Button docs.
Install multiple components at once:
npx particleui-cli add glow-card tilt-card marquee(Optional) Set up project config
The CLI auto-detects your framework and components directory. To lock in your preferences, run the interactive init:
npx particleui-cli initThis creates a particleui.json in your project root with your framework, components directory, and optional Pro token path.
Use it like any other component
Import and use — the file is already in your project:
import { GlowButton } from "@/components/ui/glow-button"
export default function Page() {
return <GlowButton variant="electric">Ship it</GlowButton>
}Global install for daily use
npm install -g particleui-cliparticleui add glow-button tilt-card beamPro components
Pro components require an active license. After purchasing, copy your API token from the dashboard and set it in your environment:
PARTICLEUI_TOKEN=pui_your_token_hereThe CLI reads this automatically — no extra config needed:
npx particleui-cli add particle-heroThe token is read at install time only — it is never bundled into your app. Add .env to .gitignore.
Vue & Svelte
The CLI auto-detects Vue and Svelte projects. You can also pass --framework:
npx particleui-cli add button --framework vue
npx particleui-cli add button --framework svelteFrameworks with available components (more ported weekly):