Commands and options of the nativeanimation CLI.
The CLI copies animations into your project. It needs Node 20 or later and runs with any package manager
(npx, pnpm dlx, bunx, yarn dlx).
Base is free forever under MIT: run npx nativeanimation init --base, then npx nativeanimation add base-button
without an account. Login and account access apply to other catalog pieces, including non-Base free pieces.
search and show
Search and read public documentation without signing in or configuring MCP:
npx nativeanimation search "a button that shows progress then success"
npx nativeanimation search "loader" --free --tag loader --limit 5 --json
npx nativeanimation search "" --json
npx nativeanimation show wheel-picker --jsonsearch <query> [--free] [--tag <t>] [--limit n] [--cursor <c>] [--json] shows id, title, price and summary.
The default limit is 10, maximum 20. An empty quoted query browses in catalog order. JSON matches signed-out MCP
search_pieces; pass next_cursor as --cursor with the same query and filters to continue.
show <id> [--json] returns public details; JSON matches signed-out get_piece, including the README.
Both commands return status 0 for results or no results with suggestions, and 1 for usage or network errors.
Read show --json or get_piece before using props.
login
npx nativeanimation loginStarts a device login: it prints a code, opens your browser and waits until you confirm it in your account. Each machine gets its own token, which you can revoke from your account page.
list
npx nativeanimation listShows every animation with its id, its price and whether your account includes it.
add
npx nativeanimation add <id...> [--path <dir>] [--overwrite] [--dry-run] [--no-install] [--yes]| Option | What it does |
|---|---|
--path <dir> | Folder for the components (default: src/components or components) |
--overwrite | Replace files that already exist and differ |
--dry-run | Print what would be written, write nothing |
--no-install | Do not install missing dependencies |
--yes | Do not ask for confirmation |
logout
npx nativeanimation logoutDeletes the token stored on this machine. To revoke it everywhere, use your account page.
CI and environment variables
| Variable | Use |
|---|---|
NATIVEANIMATION_TOKEN | Token to use instead of the stored one (for CI) |
NATIVEANIMATION_DEBUG=1 | Print full error details |
mcp
npx nativeanimation mcpRuns the MCP server for AI coding agents over stdio. You do not run it by hand: your agent starts it. Setup for each client: MCP server.