Interactive CLI tool to scaffold production-ready React Native projects using Clean Architecture.
This CLI downloads a preconfigured template and helps you quickly bootstrap scalable mobile applications with best practices already in place.
Perfect for:
- starting new React Native projects
- teams using Clean Architecture
- rapid prototyping
- AI-assisted development workflows
You can initialize a new project directly without installing the CLI globally:
npm init react-native-tuibunx create-react-native-tui
# or
npx create-react-native-tuiIf you prefer to have the commands available everywhere:
npm install -g create-react-native-tui
# Now you can use the following command:
react-native-tui- 🚀 Scaffold new projects from a production-ready template
- 🧱 Clean Architecture structure
- 📦 Automatic template download from GitHub
- 🧹 Clean caches (Android, iOS, Node Modules, Watchman)
- 🍏 Install CocoaPods
- 🤖 Run Android emulator
- ⚡ Works with npm, npx, and bunx
- Node.js >= 18.0.0
- Bun (optional, for faster execution)
The CLI downloads the latest template from:
- GitHub: alejandro-technology/react-native-template
- Branch:
main
| Command | Description |
|---|---|
| scaffold | Create new project from template |
| clean | Clean caches (Android, iOS, Node Modules, Watchman, All) |
| pod-install | Install CocoaPods dependencies |
| run-android | Run app on Android |
| version | Show CLI version |
| help | Show help |
If you invoke the tool without arguments, it opens the interactive TUI. By passing a command and flags, the tool runs in non-interactive headless mode:
# Scaffold a project skipping prompts
react-native-tui scaffold --name MyApp --bundle-id com.myapp --pm bun --ai claude,opencode --backend firebase --firebase-modules auth,firestore
# Clean caches headless
react-native-tui clean --target android
react-native-tui clean --target allFor programmatic consumption, append --json. All intermediate progress logs will be redirected to stderr, and a strictly typed JSON object will be printed to stdout upon completion:
react-native-tui scaffold --name MyApp --jsonJSON Success Output:
{
"success": true,
"output": "✅ Setup complete!\n..."
}JSON Error Output:
{
"success": false,
"error": "Missing required flag: --name"
}Contributions are welcome. Fork the repository Create your feature branch Commit changes Open a Pull Request
MIT