CLI
Add and update components from the terminal. The Aidash CLI writes source files directly into your project so you can freely modify them — no black-box package.
init
Bootstrap a new or existing project. Runs an interactive setup that writes the design tokens into your global stylesheet and creates the components alias.
pnpm dlx @aidash/cli init? Which framework are you using? › Next.js (App Router)
? Which style would you like to use? › Default
? Which colour do you want to use as the base? › Aidash Blue
? Where is your global CSS file? › app/globals.css
? Configure the import alias for components? › @/components
Writing globals.css …
Installing dependencies …
Done. Run "pnpm dev" to start.add
Pull a component's source into your project. Files land under the alias you configured during init (default: @/components/aidash).
Add a single component
Give the component name — the CLI writes the source, installs any missing peers, and prints the import path.
pnpm dlx @aidash/cli add button✓ Fetched button
✓ Wrote src/components/aidash/button.tsx
✓ Installed peer dependencies
Import with:
import { AidashButton } from "@/components/aidash/button"Add multiple at once
Space-separated names. Handy when scaffolding a new screen.
pnpm dlx @aidash/cli add button card dialog input selectAnswer prompts up-front
Skip the interactive prompts by passing flags. Useful in CI/CD.
pnpm dlx @aidash/cli add button --yes --overwritediff
Compare the version you have locally against the latest upstream source. Shows what changed since you copied it.
pnpm dlx @aidash/cli diff buttonupdate
Apply upstream changes to all installed components at once. The CLI asks before touching each file.
pnpm dlx @aidash/cli updateConfiguration
The CLI persists your answers to components.json so future commands work without prompting.
{
"$schema": "https://aidash.dev/schema.json",
"style": "default",
"tailwind": {
"css": "app/globals.css",
"baseColor": "brand"
},
"aliases": {
"components": "@/components"
}
}tailwind.config entry — the CLI only needs to know which stylesheet holds your @theme block. See Configuration.Also see
Related pages that pair well with the CLI.