React Native CLI comes with following commands:
IMPORTANT: Please note that this command is not available through
react-native-cli
, hence you need to either invoke it directly from@react-native-community/cli
orreact-native
package which proxies binary to this CLI since 0.60.0, so it's possible to use it with e.g.npx
.
Usage (with npx
):
npx @xmartlabs/rnx-cli init <projectName> [options]
Initialize a new React Native project named in a directory of the same name.
Shortcut for --template react-native-template-typescript@version
.
The versions available are the template ones and you can check it here