Skip to main content

React Native Community CLI Coverage Audit

Baseline: React Native 0.86 Community Template pins @react-native-community/cli 20.1.0. The CLI project releases independently from React Native; do not override a generated app's CLI packages merely to chase latest.

Official CLI areaStatusHandbook location
CompatibilityCovered in depthversion baseline, 006–010
initCovered in depthintro, 006–010
startCovered006–010, Metro 136–140
run-androidCovered006–010, Android 121–130
run-iosCovered006–010, iOS 131–135
build-android / Android executionCovered elsewhereAndroid/build sections
build-ios / iOS executionCovered elsewhereiOS/build sections
configCovered in depth006–010, autolinking 159
doctor / environment diagnosticsCoveredenvironment/CLI and debugging
cleanCovered as targeted troubleshootingCLI/debugging; never a substitute for diagnosis
infoCovered as diagnosticsCLI/debugging
bundleCovered elsewhereMetro/release pipeline
codegenCovered elsewhere154–158
AutolinkingCovered in depth159
ConfigurationCoveredCLI/autolinking/monorepo sections
PluginsCovered conceptuallyCLI architecture; advanced/custom CLI usage is library/platform territory
PlatformsCoveredAndroid/iOS execution plus CLI architecture
Metro integrationCovered in depth136–140
Native dependency linkingCovered in depth159, Android/iOS/CocoaPods/Gradle

Project creation​

For the React Native 0.86 production baseline the release guidance uses:

npx @react-native-community/cli@latest init MyProject --version latest

Inside a generated project, use its package scripts or the locally resolved CLI rather than installing the old global react-native-cli package.

Typical workflow:

npm start
npm run android
npm run ios
npx react-native doctor
npx react-native config

Exact scripts are the generated project's contract; teams may use npm, Yarn or another supported package manager consistently with the lockfile.

Compatibility warning​

The Community CLI README's public compatibility table currently documents CLI ^20.0.0 through React Native ^0.85.0, while the official React Native 0.86 Community Template itself pins CLI 20.1.0. That is why this handbook uses the generated 0.86 template as the concrete 0.86 compatibility evidence and does not infer that arbitrary future CLI 20.x releases are automatically safe for an existing app.

Autolinking mental model​

installed package
↓
CLI dependency discovery / react-native config
↓
Android Gradle integration + iOS CocoaPods integration
↓
Codegen/native build where needed
↓
module/component present in application binary

A package being present in node_modules does not prove the native binary was configured successfully.