# @react-native/core-cli-utils

> React Native CLI library for Frameworks to build on

Latest version **0.86.2** (published 2026-07-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install @react-native/core-cli-utils
pnpm add @react-native/core-cli-utils
yarn add @react-native/core-cli-utils
bun add @react-native/core-cli-utils
```

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.86.2 |
| Published | 2026-07-27 |
| First published | 2024-03-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | ^20.19.4 \|\| ^22.13.0 \|\| ^24.3.0 \|\| >= 25.0.0 |
| Dependencies | 0 |
| Unpacked size | 39.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 127033 |
| Maintainers | react-native-bot, fb |
| Keywords | cli-utils, react-native |

## Links

- npm: https://www.npmjs.com/package/@react-native/core-cli-utils
- Repository: https://github.com/react/react-native
- Homepage: https://github.com/react/react-native/tree/HEAD/packages/core-cli-utils#readme
- Issues: https://github.com/react/react-native/issues
- npm.io page: https://npm.io/package/@react-native/core-cli-utils

## Recent versions

- 0.86.2 (latest) — 2026-07-27
- 0.86.3 (0.86-stable) — 2026-08-24
- 0.83.10 (0.83-stable) — 2026-06-25
- 0.87.0-nightly-20260619-57ce6bc58 (nightly) — 2026-06-19
- 0.86.0-rc.3 (next) — 2026-06-02
- 0.81.6 (0.81-stable) — 2026-02-05
- 0.80.3 (0.80-stable) — 2026-01-26
- 0.79.7 (0.79-stable) — 2025-10-21
- 0.77.3 (0.77-stable) — 2025-07-21
- 0.78.3 (0.78-stable) — 2025-07-09
- 0.76.9 (0.76-stable) — 2025-04-03
- 0.75.5 (0.75-stable) — 2025-02-06
- 0.86.1 — 2026-07-24
- 0.87.0-nightly-20260618-0fc122c83 — 2026-06-18
- 0.86.0 — 2026-06-09
- … 868 more at https://npm.io/package/@react-native/core-cli-utils/versions

## README

# @react-native/core-cli-utils

![npm package](https://img.shields.io/npm/v/@react-native/core-cli-utils?color=brightgreen&label=npm%20package)

A collection of utilites to help Frameworks build their React Native CLI tooling. This is not intended to be used directly use users of React Native.

## Usage

```js
import { Command } from 'commander';
import cli from '@react-native/core-cli-utils';
import debug from 'debug';

const android = new Command('android');

const frameworkFindsAndroidSrcDir = "...";
const tasks = cli.clean.android(frameworkFindsAndroidSrcDir);
const log = debug('fancy-framework:android');

android
    .command('clean')
    .description(cli.clean.android)
    .action(async () => {
        const log = debug('fancy-framework:android:clean');
        log(`🧹 let me clean your Android caches`);
        // Add other caches your framework needs besides the normal React Native caches
        // here.
        for (const task of tasks) {
            try {
                log(`\t ${task.label}`);
                // See: https://github.com/sindresorhus/execa#lines
                const {stdout} = await task.action({ lines: true })
                log(stdout.join('\n\tGradle: '));
            } catch (e) {
                log(`\t ⚠️ whoops: ${e.message}`);
            }
        }
    });
```

And you'd be using it like this:

```bash
$ ./fancy-framework android clean
🧹 let me clean your Android caches
    Gradle: // a bunch of gradle output
    Gradle: ....
```

## Features
- `"@react-native/core-cli-utils/version.js"` contains the platform and tooling version requirements for react-native.

## Contributing

Changes to this package can be made locally and linked against your app. Please see the [Contributing guide](https://reactnative.dev/contributing/overview#contributing-code).

---
_Source: https://npm.io/package/@react-native/core-cli-utils · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
