open-index/open-npm huggingface dataset:
npm package: @prettylab/cli
Description: Command-line tool to install and update prettylab dependencies
Latest version: 0.1.0

# Pretty CLI

**Pretty CLI** is a command-line tool to install, configure, and manage [prettylab](https://github.com/prettylab) dependencies inside your repositories.  
It helps you initialize configuration, add and sync modules, and keep everything up to date.

---

## Installation

```bash
npm install -g @prettylab/cli
```

---

## Usage

The CLI exposes several subcommands to manage your project:

### `pretty`

```bash
pretty
```

Main entrypoint for the tool. Shows help and available commands.

**Description:** Command-line tool to install and update PrettyLab dependencies.

---

### `pretty install <module>`

```bash
pretty install <module>
```

**Description:** Install a module into the current repo.

---

### `pretty init`

```bash
pretty init
```

**Description:** Create a `pretty.json` interactively in this repo.

---

### `pretty list`

```bash
pretty list
```

**Description:** List configured modules.

---

### `pretty pull <module>`

```bash
pretty pull <module>
```

**Description:** Pull latest changes for a module into this repo.

---

### `pretty push <module>`

```bash
pretty push <module>
```

**Description:** Push local changes back to the module upstream.

---

### `pretty add <module>`

```bash
pretty add <module>
```

**Description:** Add or update a module in `.pretty.json`.

---

### `pretty status`

```bash
pretty status
```

**Description:** Show dirty/ahead/behind state for all modules (or a specific one with `--module`).

---

### `pretty sync`

```bash
pretty sync
```

**Description:** Pull all modules; optionally push those with local commits ahead of upstream.

---

## Configuration

The CLI relies on a configuration file (default: `.pretty.json`) stored in the root of your repository.  
This file defines which modules are installed and how they are linked.

Run:

```bash
pretty init
```

to generate one interactively.

---

## License

MIT © PrettyLab