> For the complete documentation index, see [llms.txt](https://laot7490.gitbook.io/ltbridge/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://laot7490.gitbook.io/ltbridge/daily-use/commands.md).

# CLI Commands

Run `ltbridge` with no arguments to open the interactive module manager.

| Command                  | Alias     | Description                                           |
| ------------------------ | --------- | ----------------------------------------------------- |
| `ltbridge`               | —         | Interactive menu to manage modules visually           |
| `ltbridge init`          | —         | Set up LTBridge in a new project                      |
| `ltbridge api`           | —         | Regenerate `ltbridge/api.lua` IDE stubs               |
| `ltbridge build`         | `sync`    | Build manually; add `-w` for live watcher             |
| `ltbridge add <name>`    | —         | Add a module (e.g. `Target/*` or `Inventory/AddItem`) |
| `ltbridge remove <name>` | —         | Remove a module from your project                     |
| `ltbridge why <name>`    | `explain` | Show why a module was auto-included                   |
| `ltbridge list`          | —         | View installed and available modules                  |
| `ltbridge prune`         | —         | Clean up unused modules                               |

## Common workflows

### Development

```bash
ltbridge build -w
```

Runs the watcher. Edit your Lua, save, and LTBridge rebuilds when modules or config change. Unchanged work is skipped for the current watch session (fingerprint stays in memory only).

### One-off build

```bash
ltbridge build
```

Use before deploying or when you don't need the watcher. Always rebuilds.

### Add a whole category

```bash
ltbridge add Framework/*
ltbridge add Target/*
```

### Debug a dependency

```bash
ltbridge why Framework/GetPlayer
```

Shows the dependency chain that pulled a module into your build.

See also: [Configuration](/ltbridge/daily-use/config.md)
