@morphin/cli
v1.0.6
Published
CLI for installing Morphin animated React components
Downloads
598
Readme
Morphin CLI
Install animated React components and full UI sections from the Morphin registry.
Morphin provides production-ready motion components built with:
- React
- Framer Motion
- Tailwind
- shadcn/ui-compatible patterns
Quick Start
Install a component or page bundle directly into your project:
npx @morphin/cli add beautiful-layout-page-with-pulse-stripesList available components:
npx @morphin/cli listAuthenticate for Pro-only components:
npx @morphin/cli loginThis will fetch components from:
https://registry.morphin.dev/registry.jsonExample
Install a full page bundle:
npx @morphin/cli add beautiful-layout-page-with-pulse-stripesThis installs:
src/components/
hero.tsx
header.tsx
animated-lines.tsx
insights-section.tsx
brand-marquee.tsx
src/components/ui/
logo.tsxDependencies will be suggested automatically:
npm install framer-motion @number-flow/react lucide-reactCLI Usage
npx @morphin/cli list
npx @morphin/cli add <component>
npx @morphin/cli login
npx @morphin/cli logout
npx @morphin/cli whoamiAdvanced options:
npx @morphin/cli list [--registry <url-or-path>]
npx @morphin/cli add <component...>
[--registry <url-or-path>]
[--cwd <path>]
[--dry-run]
[--overwrite]
[--no-install]
[--pm <npm|pnpm|yarn|bun>]
npx @morphin/cli login
[--token <token>]
[--no-browser]Examples
Preview installation:
npx @morphin/cli add beautiful-layout-page-with-pulse-stripes --dry-runInstall and auto-install dependencies:
npx @morphin/cli add beautiful-layout-page-with-pulse-stripes --installUse custom registry:
npx @morphin/cli list --registry ./registry/registry.jsonUse an existing token without opening a browser:
npx @morphin/cli login --token <token> --no-browserRegistry Source Resolution
When --registry is not provided, the CLI resolves the registry source in this order:
MORPHIN_REGISTRYenvironment variable- Local
./registry/registry.json(if present) - Default registry:
https://registry.morphin.dev/registry.jsonRegistry Structure
Example registry layout:
registry/
registry.json
items/
beautiful-layout-page-with-pulse-stripes.json
files/
components/
hero.tsx
header.tsx
animated-lines.tsx
insights-section.tsx
brand-marquee.tsx
ui/
logo.tsxEach item manifest describes:
- files to install
- dependencies
- optional registry dependencies
Notes
- Installed files are written under
src/by default. - Existing files are skipped unless
--overwriteis used. --dry-runpreviews file writes without modifying the filesystem.- CLI tokens are stored in
~/.morphin/config.json. MORPHIN_TOKENcan be used to authenticate without writing a local config file.- Remote registry requests automatically include
Authorization: Bearer <token>when a token is available. - Pro-only components return an upgrade prompt that links to
https://morphin.dev/pricing. registryDependenciesare printed as:
npx shadcn add ...and are not auto-installed.
Links
Registry https://registry.morphin.dev
Website https://morphin.dev
