open-index/open-npm huggingface dataset:
npm package: @mono-labs/cli
Description: A CLI tool for building and deploying projects
Author: Cody Jones
Latest version: 0.1.284

# @mono-labs/cli

The CLI runtime for Mono. Reads `.mono/` JSON command definitions and executes them with environment management, token replacement, and process orchestration.

## Installation

```bash
yarn add -D @mono-labs/cli
```

This makes the `mono` binary available in your project:

```bash
yarn mono <command> [argument] [--options]
```

## Usage

```bash
# Run a command defined in .mono/dev.json
yarn mono dev

# Pass an argument
yarn mono deploy stage

# Use options
yarn mono deploy --region us-west-2

# Run a workspace command (falls back to yarn workspace)
yarn mono web dev

# Built-in tools
yarn mono tools prune

# Config management
yarn mono config list
```

## Exports

The package provides the following export:

| Export | Description |
|--------|-------------|
| `@mono-labs/cli` | Core utilities: `setData`, `getData`, `mergeData`, `hasData`, `replaceTokens`, `boot`, `getMonoConfig`, `getRootDirectory`, `getRootJson`, `buildCommands`, `runMonoCommand`, `verifyOptionValue` |

### Core API

```typescript
import {
  setData,
  getData,
  mergeData,
  hasData,
  replaceTokens,
} from "@mono-labs/cli";
```

**Data Layer** -- Shared key-value store used during command execution:

- `setData(key, value)` -- Set a value
- `getData(key?)` -- Get a value (or all data if no key)
- `mergeData(obj)` -- Merge an object into the data layer
- `hasData(key)` -- Check if a key exists

**Token Replacement:**

- `replaceTokens(str, env)` -- Replace `${key}` and `$KEY` patterns in a string using the data layer and environment

### Types

```typescript
import type {
  MonoConfig,
  OptionConfig,
  CommandConfig,
  MonoFiles,
  BootResult
} from "@mono-labs/cli";
```

## Development

Build the CLI package:

```bash
yarn build:cli
```

The binary entry point is `bin/mono.js`, which loads `dist/lib/index.js`. The command system is built on [Commander.js](https://github.com/tj/commander.js/).

See the [Contributing guide](../../CONTRIBUTING.md) for full development setup.
npm package: @mono-labs/expo
Description: Expo and CDK utilities for mono-labs
Latest version: 0.1.284

# @mono-labs/expo

Expo and EAS build utilities for Mono. Provides environment variable filtering, Expo config setup, and token replacement for Expo/React Native projects.

## Installation

```bash
yarn add @mono-labs/expo
```

**Peer dependency:** `expo >= 52` (optional)

## API Reference

### Config Setup

```typescript
import { setUpConfig } from "@mono-labs/expo";
```

- **`setUpConfig(config)`** -- Transforms an Expo `app.json` config into a fully resolved `ExpoConfig` with environment variable injection. Filters `NEXT_PUBLIC_*` vars, sets up EAS project ID, and configures router settings.

### Token Replacement

```typescript
import { replaceTokens } from "@mono-labs/expo";
```

- **`replaceTokens(input, tokens)`** -- Replaces `${KEY}` and `$KEY` patterns in a string using the provided tokens object. Data layer values take priority over environment variables.

### Environment Filtering

```typescript
import {
  filterUnwantedEnvVars,
  filterUnwantedEnvVarsEAS,
  generateNewEnvList
} from "@mono-labs/expo";
```

- **`filterUnwantedEnvVars(env)`** -- Minimal filtering for local development. Removes only `npm_config_force`.
- **`filterUnwantedEnvVarsEAS(env)`** -- Aggressive filtering for EAS cloud builds. Removes 50+ system and developer tool variables (Windows paths, VS Code, Git, Node internals, etc.) to keep the EAS build environment clean.
- **`generateNewEnvList(processEnv)`** -- Maps `MONO_*` prefixed environment variables to configured prefixes using the `envMap` from `.mono/config.json`. Variables containing `SECRET` in the name are excluded from mapping.

## Subpath Exports

| Export | Description |
|--------|-------------|
| `@mono-labs/expo` | All utilities: `replaceTokens`, `setUpConfig`, `filterUnwantedEnvVars`, `filterUnwantedEnvVarsEAS`, `generateNewEnvList` |
| `@mono-labs/expo/tools` | `replaceTokens`, `setUpConfig` |
| `@mono-labs/expo/cdk` | `replaceTokens`, `setUpConfig` |

## Development

Build the expo package:

```bash
yarn build:expo
```

This package depends on `@mono-labs/project` for config loading. Build `project` first if making changes to both.

See the [Contributing guide](../../CONTRIBUTING.md) for full development setup.
npm package: @mono-repo/cli
Description: CLI tool for managing mono repos.
Latest version: 1.4.4

# <p align="center">

<img 
    src="https://raw.githubusercontent.com/mono-repo-dev/assets/master/logo-alt.png"
    alt="mono-repo logo" 
    width="130"
    height="141"
  />

</p>
<h1 align="center"> @mono-repo/cli</h1>
<p align="center">
  <img style="display: inline-block; margin-right: 5px;" src="https://github.com/mono-repo-dev/mono-repo/workflows/Verify/badge.svg" />
  <img style="display: inline-block; margin-right: 5px;" src="https://github.com/mono-repo-dev/mono-repo/workflows/Publish/badge.svg" />
  <img style="display: inline-block; margin-right: 5px;" src="https://badgen.net/github/release/mono-repo-dev/mono-repo" />
</p>

CLI tool for managing mono repos powered by Yarn Workspaces.

## Commands

### list

List all packages in mono repo.

```sh
# List packages out in alphabetical order.
mono-repo list
```

### run

Run scripts in packages.

```sh
# Run an NPM script in all packages.
# By default packages are run in an efficient
# optimal order parallelizing scripts where it is safe.
mono-repo run <script>

# Run an NPM script in all packages in parallel.
# This ignores the dependency tree so be careful.
mono-repo run <script> --parallel

# Run an NPM script in all packages in sync.
# This obeys the dependency tree.
mono-repo run <script> --sync

# Stream logs out in real time, logs from various packages
# can intermingle when not running in sync.
mono-repo run <script> --stream

# Don't exit with a non-zero error code if an NPM script fails.
# This is useful if you want to run all tests in a pipeline and
# gather all results even if an earlier packages tests failed.
mono-repo run <script> --no-bail

# Forward args onto all NPM scripts.
mono-repo run <script> --args --forward --this --and --that
```

### add

Add a remote or local package to a package.

**Note this only supports adding a single package at a time.**

```sh
# Add package
mono-repo add <package>

# Add package at version
mono-repo add <package>@<version>

# Add as dev dependency
mono-repo add <package> --dev

# Add as peer dependency
mono-repo add <package> --peer

# Add exact version
mono-repo add <package> --exact
```