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

# bregctl prepare-source command reference

> Generated syntax and options for bregctl prepare-source.

{/* Generated from crates/registry-cli-docs/catalog.json and the workspace version in Cargo.toml by scripts/generate-cli-reference.mjs. Run npm run generate. */}

Inspect or prepare an exact lookup-only Evidence source for an rstack dev project.

## Contract status

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

## Usage

```text
bregctl prepare-source [OPTIONS] --run-id <RUN_ID> [PROJECT]
```

## Constraints

| Condition | Requirement |
| --- | --- |
| `--row-field <ROW_FIELD>` is present | All of `--row-claim <ROW_CLAIM>`, `--row-value-file <ROW_VALUE_FILE>` are required. |
| `--row-claim <ROW_CLAIM>` is present | All of `--row-value-file <ROW_VALUE_FILE>`, `--row-field <ROW_FIELD>` are required. |
| `--row-value-file <ROW_VALUE_FILE>` is present | All of `--row-claim <ROW_CLAIM>`, `--row-field <ROW_FIELD>` are required. |
| Command invocation | `--all-records` and `--row-field <ROW_FIELD>` cannot be used together. |

## Arguments

| Argument | Always required | Default | Values | Environment | Description |
| --- | --- | --- | --- | --- | --- |
| `[PROJECT]` | No | `.` | n/a | n/a | Existing project served by the development run. A symbolic link at any component of this path is refused. |

## Options

| Option | Always required | Repeatable | Default | Values | Environment | Description |
| --- | --- | --- | --- | --- | --- | --- |
| `--run-id <RUN_ID>` | Yes | No | n/a | n/a | n/a | Ready development run serving this exact project |
| `--posture <POSTURE>` | No | No | n/a | n/a | n/a | Declare development posture for the ready run |
| `--record-type <ID>` | No | No | n/a | n/a | n/a | Record type authored directly in registry.yaml; omit to inspect available fields |
| `--selector-field <SELECTOR_FIELD>` | No | No | n/a | n/a | n/a | Existing required scalar identifier with an exact single-field unique constraint |
| `--readable-fields <READABLE_FIELDS>` | No | Yes | n/a | n/a | n/a | Comma-separated selection of 1 to 16 readable fact fields; the identifier is also readable for identity verification |
| `--all-records` | No | No | n/a | n/a | n/a | Explicitly authorize lookup across all records of the selected Record type |
| `--row-field <ROW_FIELD>` | No | No | n/a | n/a | n/a | Existing string, text or vocabulary-code field that bounds permitted records |
| `--row-claim <ROW_CLAIM>` | No | No | n/a | n/a | n/a | Nonreserved direct claim name for the fixed local row boundary |
| `--row-value-file <ROW_VALUE_FILE>` | No | No | n/a | n/a | n/a | Owner-only input file containing a nonsecret scope label as a JSON string of 1 to 512 bytes; stored in dev.yaml |
| `--client <CLIENT>` | No | No | `evidence-source` | n/a | n/a | Fresh dedicated development client ID |
| `--access-profile <ACCESS_PROFILE>` | No | No | `evidence-source` | n/a | n/a | Fresh lookup-only access profile ID for the selected Record type and facts |
| `--lookup <LOOKUP>` | No | No | `evidence-source` | n/a | n/a | Fresh lookup ID for the selected unique identifier |
| `--source-id <SOURCE_ID>` | No | No | `evidence-source` | n/a | n/a | Technical Evidence source identity used to validate the exact export |
| `--connection <CONNECTION>` | No | No | `evidence-source` | n/a | n/a | Technical connection identity used to validate generated selector names |
| `--apply` | No | No | n/a | n/a | n/a | Prepare the reviewed successor and credential; next dev start activates it |
| `--format <FORMAT>` | No | No | `human` | `human`, `json` | n/a | Emit the selected command's report in this format |
| `-h, --help` | No | No | n/a | n/a | n/a | Print help |

## Generation contract

After changing a public command, argument, option, default, environment binding, or help description, run `cargo run --locked -p registry-cli-docs -- --write`, commit `crates/registry-cli-docs/catalog.json`, then run `npm run generate` from `docs/site`.