@native-mate/cli
v1.0.2
Published
CLI tool for native-mate — init, add, list, upgrade
Downloads
324
Readme
@native-mate/cli
CLI tool for native-mate — add production-ready React Native components to your project.
Install
No install needed. Run via npx:
npx @native-mate/cli initCommands
init
Set up native-mate in your project. Prompts for preset and components directory, installs @native-mate/core, creates native-mate.json, updates .cursorrules.
npx @native-mate/cli init
npx @native-mate/cli init --preset zinc --yes # skip promptsadd
Add components to your project. Fetches source from the registry, resolves component dependencies, installs npm deps.
npx @native-mate/cli add button
npx @native-mate/cli add button card input toastComponents are written to your configured directory (default: components/ui/). You own the code.
list
Browse all available components with descriptions and categories.
npx @native-mate/cli listupgrade
Check for and apply component updates. Compares file hashes to detect local modifications and warns before overwriting.
npx @native-mate/cli upgrade
npx @native-mate/cli upgrade button cardConfig
native-mate.json in your project root:
{
"preset": "zinc",
"componentsDir": "components/ui"
}Package Manager Detection
Automatically detects npm, yarn, pnpm, or bun from lockfiles and uses the correct install command.
License
MIT
