The React Native Community CLI — Command line tools to help you build React Native apps
The React Native Community CLI — Command line tools to help you build React Native apps
Command line tools for building apps with React Native, shipped as the @react-native-community/cli npm package.
See also the Community Template.
Our release cycle is independent of react-native.
[!Warning] Important:
@react-native-community/cliis designed to work with specificreact-nativeversions. We do not recommend updating CLI independently, as it may cause unexpected issues.
@react-native-community/cli |
react-native |
|---|---|
| ^20.0.0 | ^0.81.0, ^0.82.0, ^0.83.0, ^0.84.0, ^0.85.0 |
| ^19.0.0 | ^0.80.0 |
| ^18.0.0 | ^0.79.0 |
| ^15.0.0 | ^0.76.0, ^0.77.0, ^0.78.0 |
Run the following command in your terminal prompt:
npx @react-native-community/cli@latest init MyAppSee more options for the init command here.
Once installed, you can run commands to interact with your projects by using the rnc-cli binary.
Example running start command in terminal:
yarn rnc-cli startYou can also add npm scripts to call it with whichever package manager you use:
{
"scripts": {
"start": "rnc-cli start"
}
}to call it as
yarn startPreviously:
Everything inside this repository is MIT licensed.
Support existing CLI apple project use cases without relying on podfile existing on the disk (projects using SPM)
FASOCARD
FASOCARD
Tons of errors are ignored
run-android: "Could not find the correct install APK file" for single-dimension camelCase product flavors when targeting a specific device
run-ios --udid <physical device> throws "No simulator available" because the fallback simulator is resolved eagerly
`project.ios.automaticPodsInstallation` default of `true` never applies unless `project.ios` is explicitly declared in `react-native.config.js`
run-android fails with "No connected devices!" on a cold-booting emulator (waits for adb, not for sys.boot_completed)
run-ios: "Unable to boot device in current state: Booted" alert when the simulator is already booted
Add ```react-native-screens``` native configs in Android during new app initialization