Back to DocsYou are on CLI.

CLI

Set up a project with one command, or add any component, icon or family from the registry.

One command

If you would rather not read an installation guide, let the CLI do it. It reads the project, prints its plan, waits for a yes, then installs the proven recipe, writes one example page and verifies the build.

npx prequelui-animate init
npmthe default on every machine

Available when the package is released on npm. Every recipe below is already proven against the packed tarball, so the command has nothing to discover at launch.

Consent first

The plan is printed, then one yes/no question. No is the default and --yes skips it.

Safe to repeat

A second run skips what is already installed and keeps any page you edited.

Nothing deleted

A failing step stops the run. Files and configuration are extended, never removed.

Options

The defaults are the safe ones: no writes before consent, the current directory as the project and detection from the files already there.

OptionWhat it does
-y, --yesAccept the whole plan without asking. Without it, the single question defaults to no.
--dry-runPrint the plan and change nothing on disk.
--framework <id>Override detection when two frameworks match.
--package-manager <id>Override the lockfile, for example pnpm or bun.
-h, --helpPrint the options and the targets.
-v, --versionPrint the package version.

To see the plan without touching the project, add --dry-run. The coloured output is the same, only the question is skipped:

npx prequelui-animate init --dry-run

For a scripted install, --yes accepts the plan. To pin a target, pass --framework next or --package-manager pnpm; both are also listed by --help.

Supported frameworks

Detection reads the manifest, the lockfile and the framework configuration. The automatic recipes are tested against the framework's official scaffold before release; Laravel stays guided because PHP and Composer are not part of the test image.

TargetSetupExample page
Next.js App RouterAutomatic/prequelui-demo
Next.js Pages RouterAutomatic/prequelui-demo
Vite + ReactAutomatic/prequelui-demo.html
NuxtAutomatic/prequelui-demo
Vite + VueAutomatic/prequelui-demo.html
SvelteKitAutomatic/prequelui-demo
Vite + SvelteAutomatic/prequelui-demo.html
SolidStartAutomatic/prequelui-demo
Vite + SolidAutomatic/prequelui-demo.html
AstroAutomatic/prequelui-demo
Laravel + ReactGuidedPrinted steps
HTML / JavaScriptAutomatic/prequelui-demo.html
Package managers:npmpnpmyarnbunread from the lockfile or the packageManager field.

What it changes

The CLI only extends an app it can recognise. The generated page is yours: keep it, edit it or delete it. The registry items stay as source files.

  • The runtime dependencies: Motion and the framework's Lucide package.
  • Button, Gradient Text and Typing Text from the registry, with the shared motion helpers.
  • A registry configuration when the project has none; an existing one is kept.
  • One example page with the three components, the code beside each one and the mascot.
  • The production build, then the start command and the address to open.

If something goes wrong

The CLI is built to leave a working project behind, even when it stops halfway. Read the last step it printed; it names the command that failed.

A step fails

The run stops on that step, keeps its output on screen and deletes nothing. Fix the cause, then run the same command again.

Run it again

Installed components, the configuration and the example page are detected and skipped. A page you edited is never overwritten.

Detection is unsure

The CLI asks one question with the candidates. Pass --framework or --package-manager to answer in advance.

Laravel or unknown stack

The CLI switches to guided mode: it prints the proven steps and writes nothing. Every other target is installed automatically.

If the registry cannot be reached, the plan and the failing URL stay on screen. The same item can be added by hand with the command below once the network is back.

Add one component

The registry follows the shadcn format, so every component can be added with the standard command. The URL below is the one used by these docs.

npx shadcn@latest add https://prequeluianimate.terravidhal.me/r/react/accordion.json
npmthe default on every machine

Each framework has its own CLI and its own registry path. The URL always lives under /r/<framework>/; React also serves its animated families from the root. For Vue, the same step is:

npx shadcn-vue@latest add https://prequeluianimate.terravidhal.me/r/vue/dialog.json
npmthe default on every machine

Add an icon

Icons go through the same CLI. The shared animation core arrives automatically as a registry dependency, so one icon is enough to start.

npx shadcn@latest add https://prequeluianimate.terravidhal.me/r/react/icons/bell.json
npmthe default on every machine

Built by Vidhal. The source is available on GitHub.

MIT licensed