A CLI tool for creating new Rock projects with customizable templates, platforms, and plugins.
npm create rock-app my-app
- Interactive setup - Guided prompts for project configuration
- Template system - Start with pre-configured project templates
- Platform support - Add iOS and Android platforms
- Plugin system - Extend functionality with plugins
- Bundler choice - Choose between Metro and Re.Pack
- Remote cache - Configure build caching for faster builds
-
--template <name>
- Specify template (default: "default") -
--platforms <platforms>
- Specify platforms (ios, android) -
--plugins <plugins>
- Specify plugins (brownfield-ios, brownfield-android) -
--bundler <bundler>
- Specify bundler (metro, repack) -
--install
- Install dependencies after creation -
--override
- Override existing directory -
--help
- Show help information -
--version
- Show version information
# Create a basic project
npm create rock-app my-app
# Create with specific platforms
npm create rock-app my-app --platforms ios android
# Create with brownfield plugins
npm create rock-app my-app --plugins brownfield-ios brownfield-android
# Create with Re.Pack bundler
npm create rock-app my-app --bundler repack
# Create and install dependencies
npm create rock-app my-app --install
- default - Basic React Native project template
- ios - iOS platform support
- android - Android platform support
- brownfield-ios - iOS brownfield integration
- brownfield-android - Android brownfield integration
- metro - Metro bundler (default)
- repack - Re.Pack bundler for micro-frontends