@nutifar/cli
v1.0.0
Published
The official Nutifar CLI
Readme
🚀 Nutifar CLI
Detect your project, install the right Nutifar SDK, and diagnose your setup with an interactive CLI.
✨ Features
- 🔍 Automatic project detection
- 📦 Install the correct Nutifar SDK
- 🩺 Diagnose your Nutifar setup
- 📋 View SDK information
- 🔄 Manage Nutifar SDKs
- ⚡ Interactive terminal prompts
- 🧩 Supports multiple package managers
Installation
You can run the CLI directly with npx:
npx nutifarOr install it globally:
npm install -g @nutifar/clipnpm add -g @nutifar/cliyarn global add @nutifar/cliUsage
Start the interactive CLI:
nutifarYou will see the Nutifar CLI menu:
🚀 Nutifar
? What do you want to do?
❯ Setup Nutifar
Install an SDK
Check project
View SDK info
ExitSetup Nutifar
The setup command automatically detects your project and resolves the correct Nutifar SDK.
? What do you want to do?
❯ Setup NutifarFor example, in an Expo project:
✓ Project detected
Platform: Expo
Package manager: pnpm
? Install @nutifar/expo?
❯ Yes
No
✓ Nutifar setup complete 🚀The CLI currently supports:
- Expo
- React Native
- Web
- Node.js
Install an SDK
Install a Nutifar SDK manually:
? What do you want to do?
❯ Install an SDKAvailable SDKs:
@nutifar/web
@nutifar/expo
@nutifar/react-native
@nutifar/nodeThe CLI automatically detects your package manager and runs the correct installation command.
pnpm
pnpm add @nutifar/exponpm
npm install @nutifar/expoyarn
yarn add @nutifar/expobun
bun add @nutifar/expoCheck your project
Use the built-in project diagnostics:
? What do you want to do?
❯ Check projectNutifar Doctor checks your project for common issues:
🩺 Nutifar Doctor
✓ Project Project detected
expo
✓ SDK Nutifar SDK installed
@nutifar/expo
✓ Dependencies Package manager detected
pnpm
✓ Everything looks good 🚀The diagnostic system is designed to support additional checks as the Nutifar ecosystem grows.
Supported SDKs
| Platform | Package | Status |
| --------------- | ----------------------- | -------------- |
| 🌐 Web | @nutifar/web | ✅ Stable |
| 📱 Expo | @nutifar/expo | ✅ Stable |
| 📲 React Native | @nutifar/react-native | ✅ Stable |
| 🟢 Node.js | @nutifar/node | ✅ Stable |
| 🐍 Python | @nutifar/python | 🚧 Coming Soon |
| 🐘 Laravel | @nutifar/laravel | 🚧 Coming Soon |
Package Manager Detection
The CLI automatically detects the package manager used by your project.
Supported package managers:
- pnpm
- npm
- yarn
- bun
The detected package manager is used when installing Nutifar SDKs.
Development
Clone the repository:
git clone https://github.com/BigYusuf/nutifar-sdk.git
cd nutifar-sdkInstall dependencies:
pnpm installBuild the CLI:
pnpm --filter @nutifar/cli buildRun the CLI locally:
node packages/cli/dist/index.jsStart development mode:
pnpm --filter @nutifar/cli devArchitecture
The CLI uses a registry-driven architecture.
Project
│
▼
Project Detector
│
▼
Platform
│
▼
SDK Registry
│
▼
SDK Resolver
│
▼
SDK InstallerSDKs are defined in a central registry:
const SDK_REGISTRY = [
{
packageName: "@nutifar/expo",
platform: "expo",
},
{
packageName: "@nutifar/react-native",
platform: "react-native",
},
];This allows new Nutifar SDKs to be added to the CLI without duplicating installation logic.
Roadmap
- ✅ Interactive CLI
- ✅ Project detection
- ✅ Package manager detection
- ✅ SDK registry
- ✅ SDK installation
- ✅ Project diagnostics
- 🚧 SDK information
- 🚧 SDK updates
- 🚧 SDK version checks
- 🚧 SDK migration assistant
License
Released under the MIT License.
Made with ❤️ by BigYusuf.
