# CLI for pack builders

## Commands

| Command                                                  | Use it to                                                                            |
| -------------------------------------------------------- | ------------------------------------------------------------------------------------ |
| `dryv context list`                                      | List every context root and type the engine serves                                   |
| `dryv context show <path>`                               | Explain one path: root, cardinality, provenance, provider, and the fields beneath it |
| `dryv pack init [path]`                                  | Scaffold `dryv.pack.yaml` and a template folder                                      |
| `dryv pack inspect [path]`                               | Show discovered resources and renderers                                              |
| `dryv pack validate [path]`                              | Check manifest, filesystem and engine semantics                                      |
| `dryv pack doctor [path]`                                | Check renderer and action readiness                                                  |
| `dryv pack test [path]`                                  | Render against engine-owned sample IR                                                |
| `dryv pack describe <id>` / `explain <id>`               | Read how a published pack is documented and used                                     |
| `dryv template-server init/inspect/validate/doctor/test` | Build a renderer                                                                     |
| `dryv author init/inspect/validate/doctor/test`          | Build an author and compiler pair                                                    |

Every command accepts `--json --no-input` for scripts and agents.

## `dryv context`

```bash
dryv context list
dryv context show "schema.fields[].value.is.boolean"
dryv context show "schema.fields[].value.generated.schema_validation" --json
```

A lookup always answers with `info` or a stable error code: `context.root.unknown`, `context.path.collection_invalid`, `context.path.field_unknown`, `context.path.named_map_key`. See [Derived values](/pack-builders/context/derived) for what the derived helpers mean.

## `unknown command 'context'`

`dryv context` ships with the 0.1.0 line. If your shell reports it as unknown, the `dryv` on your `PATH` is an older install. Check which one you are running:

```bash
dryv --version
which dryv
```

Update the global install:

```bash
dryv update
```

or, when working from a repository checkout, run the checkout's build:

```bash
cd source/apps/cli && bun run build && bun link
```

Then `dryv --version` should print 0.1.0 or newer and `dryv context list` should work.
