MCPcopy
hub / github.com/react-native-community/cli

github.com/react-native-community/cli @v20.2.0 sqlite

repository ↗ · DeepWiki ↗ · release v20.2.0 ↗
582 symbols 1,956 edges 306 files 32 documented · 5%
README

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.

[!Warning] 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.

Extension points exported contracts — how you extend this code

pbxFile (Interface)
(no doc) [1 implementers]
packages/cli-link-assets/src/xcode.d.ts
BuilderCommand (Interface)
(no doc)
packages/cli-config-apple/src/types.ts
BuildFlags (Interface)
(no doc)
packages/cli-platform-android/src/commands/buildAndroid/index.ts
StreamZipOptions (Interface)
(no doc)
packages/cli-types/src/node-stream-zip.d.ts
TemplateOptions (Interface)
(no doc)
packages/cli/src/commands/init/init.ts
Overrides (Interface)
(no doc)
packages/cli-tools/src/doclink.ts
Activity (Interface)
(no doc)
packages/cli-config-android/src/config/getMainActivity.ts
Device (Interface)
(no doc)
packages/cli-platform-apple/src/types.ts

Core symbols most depended-on inside this repo

info
called by 52
packages/cli-tools/src/loader.ts
writeFiles
called by 49
jest/helpers.ts
getTempDirectory
called by 33
jest/helpers.ts
warn
called by 26
packages/cli-tools/src/loader.ts
succeed
called by 25
packages/cli-tools/src/loader.ts
runCLI
called by 25
jest/helpers.ts
cleanup
called by 25
jest/helpers.ts
fail
called by 23
packages/cli-tools/src/loader.ts

Shape

Function 472
Interface 45
Class 35
Method 28
Enum 2

Languages

TypeScript98%
Java2%

Modules by API surface

packages/cli-link-assets/src/__tests__/linkAssets.test.ts22 symbols
packages/cli-link-assets/src/tools/helpers/font/androidFontAssetHelpers.ts17 symbols
packages/cli/src/commands/init/init.ts13 symbols
packages/cli-tools/src/loader.ts13 symbols
packages/cli-tools/src/logger.ts12 symbols
packages/cli-server-api/src/websocket/createMessageSocketEndpoint.ts12 symbols
packages/cli-link-assets/src/xcode.d.ts12 symbols
jest/helpers.ts12 symbols
packages/cli/src/commands/init/editTemplate.ts11 symbols
packages/cli-config-apple/src/tools/pods.ts11 symbols
packages/cli-doctor/src/tools/windows/androidWinHelpers.ts10 symbols
packages/cli-doctor/src/commands/doctor.ts10 symbols

Dependencies from manifests, versioned

@babel/core7.0.0 · 1×
@babel/eslint-parser7.12.0 · 1×
@babel/plugin-proposal-export-namespace-from7.18.9 · 1×
@babel/plugin-transform-modules-commonjs7.2.0 · 1×
@babel/preset-env7.0.0 · 1×
@babel/preset-typescript7.3.3 · 1×
@react-native-community/cli-clean20.2.0 · 1×
@react-native-community/cli-config20.2.0 · 1×
@react-native-community/cli-config-android20.2.0 · 1×
@react-native-community/cli-config-apple20.2.0 · 1×
@react-native-community/cli-doctor20.2.0 · 1×
@react-native-community/cli-platform-android20.2.0 · 1×

For agents

$ claude mcp add cli \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact