react-native
Command line tools that ship with react-native in form of the @react-native-community/cli package
Subcommands
Name | Description |
---|---|
doctor | [EXPERIMENTAL] Diagnose and fix common Node.js, iOS, Android & React Native issues |
bundle | Builds the javascript bundle for offline use |
init | Initialize a new React Native project named <projectName> in a directory of the same name |
uninstall | Uninstall and unlink native dependencies |
start | Starts the webserver |
ram-bundle | Builds javascript as a "Random Access Module" bundle for offline use |
link | Links assets and optionally native modules |
upgrade | Upgrade your app's template files to the specified or latest npm version using `rn-diff-purge` project. Only valid semver versions are allowed |
info | Get relevant version info about OS, toolchain and libraries |
install | Install and link native dependencies |
config | Print CLI configuration |
unlink | Unlink native dependency |
log-ios | Starts iOS device syslog tail |
profile-hermes | Pull and convert a Hermes tracing profile to Chrome tracing profile, then store it in the directory <destinationDir> of the local machine |
log-android | Starts logkitty |
run-android | Builds your app and starts it on a connected Android emulator or device |
run-ios | Builds your app and starts it on iOS simulator |
Options
Name | Description |
---|---|
--version | Print CLI version |
--verbose | Increase logging verbosity |
-h, --help | Output usage information |