This guide will give you more information on the React Native Windows CLI.
@react-native-windows/cli is a CLI used to build and run React Native for Windows apps.
Run this from an existing React Native for Windows app to build and deploy.
npx react-native run-windows
Here are the options that
react-native run-windows takes:
|boolean||Specifies a Release build|
|string||Override the root directory for the windows build which contains the windows folder. (default: |
|string||The build architecture (|
|boolean||Disables multi-proc build|
|boolean||Deploys the app to an emulator|
|boolean||Deploys the app to a connected device|
|string||Deploys the app to the specified |
|boolean||Deploys the app in remote debugging mode.|
|boolean||Do not launch packager while building|
|boolean||Enable Bundle configuration and it would be |
|boolean||Do not launch the app after deployment|
|boolean||Do not run autolinking|
|boolean||Do not build the solution|
|boolean||Do not deploy the app|
|boolean||Force deploy from layout, even in release builds|
|string||Override the app solution file determined by 'react-native config', e.g. |
|string||Override the app project file determined by 'react-native config', e.g. |
|string||Comma separated props to pass to MSBuild, e.g. |
|string||Optional directory where MSBuild log files should be stored|
|boolean||Dump environment information|
|number||Enable direct debugging on specified port|
|boolean||Use Hermes instead of Chakra as the JS engine (supported on 0.64+)|
|boolean||Disables sending telemetry that allows analysis of usage and failures of the react-native-windows CLI|
|boolean||output usage information|
This sends telemetry to Microsoft by default. You can prevent the telemetry from being sent by using the
--no-telemetry command line option. See the below for more details.
The software may collect information about you and your use of the software and send it to Microsoft. Microsoft may use this information to provide services and improve our products and services. You may turn off the telemetry as described in the repository. There are also some features in the software that may enable you and Microsoft to collect data from users of your applications. If you use these features, you must comply with applicable law, including providing appropriate notices to users of your applications together with a copy of Microsoft's privacy statement. Our privacy statement is located at https://go.microsoft.com/fwlink/?LinkID=824704. You can learn more about data collection and use in the help documentation and our privacy statement. Your use of the software operates as your consent to these practices.
This data collection notice only applies to the process of running the react-native-windows CLI (run-windows and related tools like autolinking).