CLI Reference.
The official glidecn-cli scaffolds transition pipelines, downloads transition recipes, and auto-wires Framer Motion into your project with zero runtime dependencies.
1. Project Initialization (init)
glidecn-cli init executes an interactive setup wizard that detects your framework, installs peer dependencies (framer-motion, lucide-react), and creates the core motion barrel.
- TypeScript or JavaScript
- Framework Adapter (Next.js App / Next.js Pages / React Router)
- Target directory (default:
components/glidecn) - Default baseline transition (
fade)
components/
└── glidecn/
├── index.ts # Barrel exports (GlideCN, Page, useGlide)
├── provider.tsx # <GlideCNProvider>
├── adapters/
│ └── next-app.tsx # <GlideCN> Adapter
├── core/
│ ├── animation-engine.ts # Variant builders & GPU hints
│ ├── registry.ts # TransitionRegistry
│ ├── types.ts # Strict TypeScript types
│ └── utils.ts # Easing & Math utilities
└── transitions/
└── fade.ts # Default baseline transition2. Installing Transitions (add)
glidecn-cli add downloads individual transitions, batches, or entire family categories directly into components/glidecn/transitions and auto-updates the barrel registry.
All commands below support pnpm, npm, bun, and yarn.
Single Transition Installation
Single TransitionInstall a specific transition by its name.
Multi-Transition Batch Installation
Multi-TransitionInstall multiple transitions simultaneously separated by a space.
Category Bundle Installation (--category)
Family CategoryInstall all transitions belonging to a specific family (e.g. spatial, portal, flow).
Complete Catalog Installation (--all)
All 70 TransitionsInstalls the entire transition suite into your project in one shot.
3. Updating Existing Codebase (update)
glidecn-cli update auto-detects your existing installation, checks your project language and framework adapter, and refreshes all core engine files, adapters, and installed transitions with the latest improvements and bugfixes.
- Core engine (
transition-manager,transition-context, etc.) - Framework adapters (
adapters/next-app, etc.) - All currently installed transitions (or all 70 with
--all) - Barrel exports (
index.ts/index.js)
Interactive Project Update
InteractiveRefreshes your core engine and existing transitions with interactive confirmation.
Update & Upgrade to All 70 Transitions
--all FlagRefreshes the core and installs the full suite of all 70 transitions.
Automated / CI Update (--yes)
CI / HeadlessSkips prompts for automated upgrade scripts and GitHub Actions workflows.
4. Catalog Explorer (list)
glidecn-cli list inspects available transitions, prints family statistics, and prints terminal snippets.
5. Flags & Options Reference
Complete matrix of all command-line flags and arguments supported by glidecn-cli.
glidecn-cli Command Flags
--all, -abooleanInstalls or updates all 70 page and physics transitions in the catalog in a single batch.
false--yes, -ybooleanSkips interactive confirmation prompts (ideal for CI/CD and automated upgrade scripts).
false--category, -c <name>stringInstalls all transitions belonging to a specific family: flow, portal, paper, mask, spatial, dynamic, experimental, retro.
--path, -p <dir>stringSpecifies a custom destination directory for the generated components and transitions (ideal for monorepos).
components/glidecn--help, -hbooleanDisplays help information, usage instructions, and available flags for any command.
--version, -VbooleanPrints the current installed version of the glidecn-cli package.
6. Monorepos & Custom Paths
Use the --path option to direct files into a shared UI package in Turborepo, Nx, or pnpm workspaces.
The CLI creates the target directory if it doesn't exist.