Skip to content
Native Animation

CLI

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 --json

search <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 login

Starts 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 list

Shows 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]
OptionWhat it does
--path <dir>Folder for the components (default: src/components or components)
--overwriteReplace files that already exist and differ
--dry-runPrint what would be written, write nothing
--no-installDo not install missing dependencies
--yesDo not ask for confirmation

logout

npx nativeanimation logout

Deletes the token stored on this machine. To revoke it everywhere, use your account page.

CI and environment variables

VariableUse
NATIVEANIMATION_TOKENToken to use instead of the stored one (for CI)
NATIVEANIMATION_DEBUG=1Print full error details

mcp

npx nativeanimation mcp

Runs 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.