CLI
CLI
Use the motionuikit CLI to add components and sections to your project, and to check your plan and usage.
The motionuikit CLI copies MotionUIKit components and sections into your project as source code, installs the npm packages they need. It runs with your package manager's runner, so there is nothing to install globally.
npx motionuikit@latest add perspective-marqueeBefore you start
- Node.js 20 or newer.
- A React project (Next.js, Vite or Astro).
- An API key. Every install needs one, free resources included. Sign in and copy your key from Account settings → API.
Browsing with list and search needs no key.
Quick start
Set up your project
Run
initin your project's folder. It asks a few questions, saves your answers inmotionuikit.config.jsonand saves your API key in.env.npx motionuikit@latest initAdd a component or section
npx motionuikit@latest add perspective-marqueeImport it
Components land in
components/motionuikit/ui/and sections incomponents/motionuikit/sections/(undersrc/if your project has one). Import them with the@/alias.
import PerspectiveMarquee from '@/components/motionuikit/ui/perspective-marquee'
import Forma from '@/components/motionuikit/sections/forma'You can skip step 1: the first add in a project without motionuikit.config.json runs init for you.
init
Use the init command to set up a project. It writes motionuikit.config.json, saves your API key to .env (and adds .env to .gitignore), and prepares the project so installed code builds:
- adds the
@/import alias if the project doesn't have one; - sets up Tailwind CSS v4 with PostCSS if it's missing or on v3;
- in Astro, adds the React integration if it's missing.
Project setup explains each of these in detail.
npx motionuikit@latest initIt asks for:
- Framework: choose
react. The library is React today;htmlis for HTML versions of sections, and none are published yet. - TypeScript: answer no in a JavaScript project, and
.tsxfiles are installed as.jsx. Not asked in an HTML project. - Monorepo: only in a workspace. Puts shared components in
packages/ui(see Monorepos). - Components import alias: how your code imports components. The default is
@/components/motionuikit. Not asked in an HTML project. - Your API key: leave it blank to add it to
.envlater.
Use --yes to accept every default without questions:
npx motionuikit@latest init --yesOptions
Usage: motionuikit init [options]
write motionuikit.config.json (and optionally .env)
Options:
-c, --cwd <dir> the working directory (default: the current directory)
-y, --yes accept defaults, no prompts (default: false)
-f, --force overwrite an existing config (default: false)
--framework <name> react | html
--no-typescript the project is JavaScript: TS files are
transformed on install
--components-alias <alias> how the project imports components and sections
(default @/components/motionuikit); must match a
tsconfig/jsconfig "paths" entry when changed
--monorepo [enabled] react only: set up a shared packages/ui in this
workspace and wire the app to it (--monorepo=false
to skip)
--no-monorepo do not ask about a monorepo setup
--no-tailwind don't set up Tailwind CSS v4 when the project
lacks it (React on Next.js, Astro or Vite)
--alias when the project can't resolve "@/" imports, set
it up (the default with --yes)
--no-alias when the project can't resolve "@/" imports,
change nothing: files import each other relatively
-h, --help display help for commandadd
Use the add command to add components and sections to your project.
npx motionuikit@latest add [items...]Add several at once:
npx motionuikit@latest add perspective-marquee meteor-grid formaFor each component or section, add:
- checks your project (config,
@/alias, Tailwind, and the React integration in Astro); - downloads the item, which counts one use of your daily limit;
- writes its files, converting TypeScript to JavaScript if your project is JavaScript;
- installs the npm packages it needs with your package manager (npm, pnpm, yarn or bun);
- prints what is left of your daily limit.
If a file already exists, add asks before replacing it: yes, no, all (replace every file in this install) or quit. Use --overwrite to replace files without asking.
To see what an install would do without changing anything or using your limit, use --dry-run. It prints every file it would write and every command it would run:
npx motionuikit@latest add arcline --dry-runOptions
Usage: motionuikit add [options] <items...>
add components or sections to your project
Arguments:
items component or section names
Options:
--auth <key> API key (overrides config and environment)
--framework <name> target framework: react | html (default: from config,
else react)
-p, --path <dir> install directory (bypasses the configured folders and
the src/ check)
-c, --cwd <dir> the working directory (default: the current directory)
-o, --overwrite overwrite existing files without asking (default: false)
--dry-run print what would happen; write nothing and count nothing
(default: false)
--no-deps do not install npm dependencies
-h, --help display help for commandremove
Use the remove command (or rm) to delete a component's or section's files from your project.
npx motionuikit@latest remove arclineremove asks MotionUIKit which files the item installs, then deletes them from the places add put them, along with any folders left empty. It lists the files and asks before deleting anything.
It leaves some things alone on purpose:
- Files you moved. Only files at the path your config gives them are deleted.
- Files another installed item still uses. For example, an image two sections share stays until both are removed.
- npm packages. Other code may use them;
removeprints their names. - Imports in your own code. Remove those yourself.
remove never counts against your limit, even if you have reached it or moved to a smaller plan.
Options
Usage: motionuikit remove|rm [options] <items...>
remove components or sections from your project
Arguments:
items component or section names
Options:
--auth <key> API key (overrides config and environment)
--framework <name> the framework it was added for: react | html (default:
from config)
-c, --cwd <dir> the working directory (default: the current directory)
-y, --yes remove without asking (default: false)
--dry-run print what would be removed; delete nothing (default:
false)
-h, --help display help for commandlist
Use the list command (or ls) to see everything MotionUIKit offers. No API key needed.
npx motionuikit@latest listEach row shows the name, the kind, a short description and a link to its page on motionuikit.io (Cmd+click or Ctrl+click it in most terminals). Use --kind to show one kind only:
npx motionuikit@latest list --kind sectionOptions
Usage: motionuikit list|ls [options]
list what the registry offers
Options:
-c, --cwd <dir> the working directory (default: the current directory)
--kind <kind> component | section | template
--json machine-readable output (default: false)
-h, --help display help for commandsearch
Use the search command to find components, sections and templates by name or description. No API key needed.
npx motionuikit@latest search heroOptions
Usage: motionuikit search [options] <query...>
search the registry
Arguments:
query what to look for
Options:
-c, --cwd <dir> the working directory (default: the current directory)
--kind <kind> component | section | template
--json machine-readable output (default: false)
-h, --help display help for commandinfo
Use the info command to see how your project is set up: its framework, whether it uses TypeScript, its five import aliases, and the components and sections installed in it. It only reads local files, so it needs no key or network.
npx motionuikit@latest infoProject
Framework react
TypeScript Yes
Aliases
components @/components/motionuikit
ui @/components/motionuikit/ui
sections @/components/motionuikit/sections
hooks @/hooks
lib @/lib
Installed components (2)
meteor-grid
perspective-marquee
Installed sections (1)
formaA project without motionuikit.config.json gets an error asking you to run init first. Files installed with --path aren't listed.
Options
Usage: motionuikit info [options]
show this project's framework, TypeScript setting, aliases and installed items
Options:
-c, --cwd <dir> the working directory (default: the current directory)
--json machine-readable output (default: false)
-h, --help display help for commanddocs
Use the docs command to get links to these docs. With a topic, it prints just that link. No API key needed.
npx motionuikit@latest docsMotionUIKit docs
CLI https://motionuikit.io/docs/cli
Components https://motionuikit.io/docs/using-components
Sections https://motionuikit.io/docs/using-sections
Templates https://motionuikit.io/docs/using-templates
Fonts https://motionuikit.io/docs/using-fontsnpx motionuikit@latest docs sectionsOptions
Usage: motionuikit docs [options] [topic]
show links to the MotionUIKit docs
Arguments:
topic one of: cli, components, sections, templates, fonts
Options:
--json machine-readable output (default: false)
-h, --help display help for commandwhoami
Use the whoami command to see which account your API key belongs to.
npx motionuikit@latest whoamiUsing the API key from ${MOTIONUIKIT_API_KEY} (via motionuikit.config.json).
Name: Jane Doe
Email: jane@example.comOptions
Usage: motionuikit whoami [options]
show the name and email of the account your API key belongs to
Options:
-c, --cwd <dir> the working directory (default: the current directory)
--auth <key> API key (overrides config and environment)
--json machine-readable output (default: false)
-h, --help display help for commandplan-details
Use the plan-details command to see your plan: its name, when it renews (or ends, if you cancelled), its daily limits and, on Agency and Enterprise plans, its seats.
npx motionuikit@latest plan-detailsPlan: 1 Year - Agency
Renews: Nov 6, 2027
Seats: 10 total, 3 empty
Limits
Type Daily/seat Team weekly
Components 20 1400
Sections 10 700
Templates 2 140Lifetime plans show no renewal date, and Unlimited where there is no limit. See Plans & limits for what each plan includes.
Options
Usage: motionuikit plan-details [options]
show your plan, its renewal date, usage limits and team seats
Options:
-c, --cwd <dir> the working directory (default: the current directory)
--auth <key> API key (overrides config and environment)
--json machine-readable output (default: false)
-h, --help display help for commandremaining-usage
Use the remaining-usage command to see what is left of today's limits, for components, sections and templates, and when they reset. On a team plan it also shows what is left of the team's weekly limit.
npx motionuikit@latest remaining-usageRemaining usage
Type Daily
Components 7 of 10
Sections 3 of 5
Templates 1 of 1
Daily limits reset Nov 7, 12:00 AM UTC.Checking never counts as a use.
Options
Usage: motionuikit remaining-usage [options]
show what is left of your daily limits and your team's weekly limit
Options:
-c, --cwd <dir> the working directory (default: the current directory)
--auth <key> API key (overrides config and environment)
--json machine-readable output (default: false)
-h, --help display help for commandUsing the CLI in CI and with AI agents
Every command works without a terminal to type into, as in CI or when an AI agent runs it. The CLI never waits for an answer it can't get:
inituses the defaults when there is no terminal, the same as--yes. It only stops if the project can't resolve@/and you passed neither--yesnor--no-alias; the message names both.addin a project withoutmotionuikit.config.jsonstops and asks you to runinit --yesfirst.- No API key is an error that explains where to put one; the CLI never asks for it without a terminal.
- Existing files are skipped, not replaced. Use
--overwriteto replace them. removeneeds--yes.
After every add, the CLI writes .motionuikit/INSTRUCTIONS.md for the agent that ran it: what was written, where, the import alias and the packages installed. The file is added to .gitignore.
An agent that repeats a command uses your limit again
Every add counts, including one that installs the same item again. Use --dry-run to check what an install will do
first.