npm.io
20.2.0 • Published 1 month agoCLI

@react-native-community/cli

Licence
MIT
Version
20.2.0
Deps
15
Size
224 kB
Vulns
0
Weekly
0
Stars
2.9K

React Native Community CLI

npm package

Command line tools for building apps with React Native, shipped as the @react-native-community/cli npm package.

See also the Community Template.

Docs

Compatibility

Our release cycle is independent of react-native.

Important: @react-native-community/cli is designed to work with specific react-native versions. We do not recommend updating CLI independently, as it may cause unexpected issues.

@react-native-community/cli react-native
^20.0.0 ^0.81.0, ^0.82.0, ^0.83.0, ^0.84.0, ^0.85.0
^19.0.0 ^0.80.0
^18.0.0 ^0.79.0
^15.0.0 ^0.76.0, ^0.77.0, ^0.78.0

Previous versions

Creating a new React Native project

Run the following command in your terminal prompt:

npx @react-native-community/cli@latest init MyApp

See more options for the init command here.

Usage in an existing React Native project

Once installed, you can run commands to interact with your projects by using the rnc-cli binary.

Example running start command in terminal:

yarn rnc-cli start

You can also add npm scripts to call it with whichever package manager you use:

{
  "scripts": {
    "start": "rnc-cli start"
  }
}

to call it as

yarn start

Maintainers

Previously:

License

Everything inside this repository is MIT licensed.