Guides
Copied code usually means giving up upstream fixes. Nativra keeps them: it knows which files you edited, updates only the rest, and backs up whatever it changes.
When the CLI writes a file it stores the file's SHA-256 hash in nativra.lock.json. Later, it hashes the file on disk again. Same hash: you haven't touched it. Different hash: it has local changes and is treated as yours. Line endings don't count, so a Windows checkout that turns LF into CRLF isn't an edit.
list --installed shows every installed item with its version and the registry's, and says which have updates. info <item> shows the same for one item.
npx nativra-cli list --installeddiff compares your copy with what add would write today, with your import aliases already applied. Lines starting with - are yours, + are the registry's.
npx nativra-cli diff login-form--- components/ui/LoginForm.tsx installed
+++ components/ui/LoginForm.tsx registry
@@ -39,9 +39,9 @@
<View className="mb-6">
<Text variant="h2" className="text-center mb-1">
- Sign in to Acme
+ Welcome back
</Text>With no ids, update checks every item in the lockfile. Pass ids to limit it. New registry dependencies are installed, and newly required npm packages are listed.
npx nativra-cli update = lib/themes/theme.ts (up to date)
= hooks/use-theme-colors.ts (up to date)
✓ Updated components/ui/Button.tsx
! components/ui/LoginForm.tsx has local changes — skipped (use --force, or 'nativra diff login-form')--force overwrites files with local changes. They are backed up first, so this is reversible.
npx nativra-cli update login-form --forceIn CI, update --check reports like --dry-run and exits with code 1 while anything is out of date, including registry changes your local edits are holding back. An edited file whose registry source hasn't changed doesn't count. diff <item> --exit-code does the same for one item's files.
npx nativra-cli update --checkBefore an operation changes files, the CLI copies the current versions into .nativra/backups/<id>/<timestamp>/ with a manifest.json. rollback restores the newest snapshot for an item and consumes it, so running it again goes one step further back. Files the operation created are removed.
npx nativra-cli rollback button.nativra/
└── backups/
└── button/
└── 2026-11-14T13-20-05-120Z/
├── manifest.json
└── Button.tsxrollback <id> restores both.audit-fix. Undo with rollback audit-fix.npx nativra-cli remove buttonremove deletes an item's files and its lockfile entry. It refuses, unless you pass --force or confirm the prompt, when:
With --yes there is no prompt, so both cases fail unless --force is set. Removed files are backed up first, so rollback can bring an item back.