Skip to content
This repository has been archived by the owner on May 15, 2023. It is now read-only.

Latest commit

 

History

History
24 lines (14 loc) · 886 Bytes

commands.md

File metadata and controls

24 lines (14 loc) · 886 Bytes

Command Reference for rnx-cli

React Native CLI comes with following commands:

init

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 or react-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.

Options

--templateVersion <string>

Shortcut for --template react-native-template-typescript@version. The versions available are the template ones and you can check it here