Command line
vert-ui ships its own CLI — init, add, view, docs, search, build and diff. Components are copied into your repo as source you own, with animations that work without installing a theme.
Step 1
Install the CLI
No global install needed. Run it per project via your package manager — the bin is vert-ui:
# any package manager works
pnpm dlx @vert-ui/cli --help
npx @vert-ui/cli --help
bunx @vert-ui/cli --helpThe CLI reads components.json in your project root. Point it elsewhere with --cwd.
Step 2
Initialize
init writes a components.json with sensible path aliases and the @vert registry map:
vert-ui init
vert-ui init --css src/globals.css --base-color zinc
vert-ui init --force # overwrite an existing components.json$ vert-ui init
✓ Created ./components.json
Registered the @vert registry.
Next: add your first component, e.g. `vert-ui add button`Step 3
Add components
add resolves the item and every registryDependencies it declares, copies each file into your repo, then installs the npm dependencies with your package manager.
vert-ui add button
vert-ui add button input card # multiple at once
vert-ui add accordion --dry-run # preview, write nothing
vert-ui add accordion --overwrite # replace files you have already customized
vert-ui add accordion --no-installAdd an accordion to a brand-new project — note the third file:
$ vert-ui add accordion
› Resolving accordion
✓ components/vert-ui/accordion.tsx
✓ lib/vert-ui/cn.ts
✓ styles/motion.css
dependencies: @radix-ui/react-accordion, class-variance-authoritystyles/motion.css is thevert-motion item: shared keyframes for every animated component. Accordion, collapsible, dialog, dropdown menu, hover card, popover, select, tabs, tooltip, toast, progress and skeleton all install it — so a component animates out of the box even if you never install the full theme. You get the same file once across all of them.
Registry specifiers
Where items come from
Every command that loads an item accepts the same four shapes, in this order of resolution:
# bare name — resolved against the default (@vert) registry
vert-ui add button
# aliased — "vert" can be any key of the "registries" map
vert-ui add @vert/button
# direct URL — a self-hosted registry on another domain
vert-ui add https://cdn.example.com/registry/button.json
# local file — a registry item on disk (nice when iterating on a registry)
vert-ui add ./registry/button.jsonLocal files make registries easy to build and test
Point at a JSON file on disk and add will follow its registry dependencies and install npm packages exactly as it would for the live registry.
Inspect
view, docs and search
vert-ui view accordion # description, deps, files
vert-ui view accordion --json # the raw registry item
vert-ui docs # list the whole registry
vert-ui docs accordion # print the docs link for a component
vert-ui search # browse all items
vert-ui search input # filter by name, title or descriptionsearch reads registry.json from the registry site. It respects your aliases — search --registry @vert acme to search multiple registries in one pass.
Maintain
build and diff
build turns a source registry — a registry.json whose items reference files by path — into shadcn-compatible JSON with the file contents embedded:
vert-ui build registry.json # writes public/r/<name>.json + registry.json
vert-ui build --output dist/registrydiff compares what is installed in your repo against the registry and prints a unified patch for anything that drifted:
$ vert-ui diff accordion
✓ components/vert-ui/accordion.tsx is up to date
Everything is up to date.Commit before re-adding, and diff shows exactly what an upstream update would change.
Reference
Flags
The useful flags across all commands:
--cwd <dir> work in <dir> instead of the current directory
--dry-run show what would change without touching disk
--overwrite replace files that already exist
--no-install skip running your package manager
--json machine-readable output (view, docs, search)
-s, --silent suppress non-error outputNext
Install the theme and build
The CLI gives you source, not a black box. Install the theme once so components pick up the full vert look, then follow Getting Started to compose screens.
Continue with Installation or Getting Started.