Registry stack documentation: machine-readable Markdown.
Index of all pages: https://docs.registrystack.org/dev/llms.txt
Full corpus: https://docs.registrystack.org/dev/llms-full.txt

# bregctl diff command reference

> Generated syntax and options for bregctl diff.

{/* Generated from Clap command definitions by scripts/generate-cli-reference.mjs. Run npm run generate. */}

Compare an authoring candidate with a rederived closed package.

## Contract status

This page is generated from the public Clap command tree for Registry Stack source version `0.30.0` and catalog SHA-256 `2221f17eae216048d4cfaf7f66e3dcd68a250f6f6de4e24b177441819192b475`. Hidden implementation commands are omitted.

## Usage

```text
bregctl diff [OPTIONS] <--runtime-config <ABSOLUTE_FILE>|--package <DIRECTORY>> <PROJECT>
```

## Constraints

| Condition | Requirement |
| --- | --- |
| Command invocation | Exactly one of `--runtime-config <ABSOLUTE_FILE>`, `--package <DIRECTORY>` is required. |
| Command invocation | `--package <DIRECTORY>` and `--runtime-config <ABSOLUTE_FILE>` cannot be used together. |

## Arguments

| Argument | Always required | Default | Values | Environment | Description |
| --- | --- | --- | --- | --- | --- |
| `<PROJECT>` | Yes | n/a | n/a | n/a | Base Registry Engine authoring project directory. A symbolic link at any component of this path is refused. |

## Options

| Option | Always required | Default | Values | Environment | Description |
| --- | --- | --- | --- | --- | --- |
| `--runtime-config <ABSOLUTE_FILE>` | No | n/a | n/a | n/a | Absolute runtime configuration whose package bindings and trust apply. A symbolic link at any component of this path is refused. |
| `--package <DIRECTORY>` | No | n/a | n/a | n/a | Closed package inspected for integrity only, without activation authority. A symbolic link at any component of this path is refused. |
| `--format <FORMAT>` | No | `human` | `human`, `json` | n/a | Emit the selected command's report in this format |
| `-h, --help` | No | n/a | n/a | n/a | Print help |

## Generation contract

Run `npm run generate` from `docs/site` after changing a public command, argument, option, default, environment binding, or help description.