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