CLI
init
Creates components.json and the @/ alias in the Expo app you're in (src/ or root layout), then asks for a brand colour, font, radius and light / dark — or takes them as flags (--yes skips the questions). It adds lib/kit.tsx and writes lib/kit-theme.tsx, an <AppTheme> wrapper around KitProvider for your root layout.
init my-app
Starts a new Expo app in ./my-app (create-expo-app) and sets ExpoKit up inside it.
add
Copies an item and its registry dependencies, then installs missing packages.
list
Every component, block and template in the registry.
diff
For each file of an installed item: up to date, changed by you (the diff against what was installed), or changed upstream (the diff update would apply).
update
Brings every installed item (or the ones named) to this CLI's version. Files nobody touched since add are refreshed; a file you patched stops its item and the diff is shown, so your fix is never silently replaced. --force takes upstream. liquidglass-tab keeps your tabs.ts and screens.
doctor
Checks components.json, package.json main, routes and peer dependencies.
login
Saves a CLI token (create one on your Account page) so add can download Pro items. In scripts, pipe the token in or set EXPO_KIT_TOKEN rather than passing --token, which stays in shell history. logout removes it; whoami shows your plan.
Pro items
Items marked PRO in add --list are downloaded from expokit.in instead of being bundled. Create a token on your /account page, run login once, then add them like any other item. The token is stored in ~/.expo-kit/credentials.json (or set EXPO_KIT_TOKEN in CI).
Install records
add records each file it wrote in components.json under files — a hash of the file as written (after your Prettier ran) — and each item under installed with the CLI version and the KIT_VERSION of your kit.tsx. That is how update tells a file it may refresh from one you changed. Commit components.json with the files. A file without a record (added by an older CLI) is treated as changed until it matches upstream or you pass --force.
add says your kit.tsx is older than KIT_VERSION 5, open npx @expokit/cli@latest diff (no item name lists every installed file). Merge new Labels keys into your patched kit, or replace with --force and re-apply your edits. See Kit version.Shared files
Components share src/lib/kit.tsx (and sometimes each other, e.g. Password Input uses Floating Input). The CLI writes a shared file only if it is missing or unchanged — if you edited it, it is kept and the CLI tells you. Pass --force to replace it.
components.json: paths.components, paths.lib, paths.app. Change them before adding items if your project uses a different layout.
