Released docs. You are viewing the documentation published with v0.49.0. Development docs are available at Latest.
bregctl migration draft command reference
Write the reviewed migration directory for a successor whose changes need no SQL.
Contract status
Section titled “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.
Description
Section titled “Description”Write the reviewed migration directory for a successor whose changes need no SQL. Covers every access or disclosure change against the baseline package. Compatible-additive changes, such as an optional field, may sit beside them and stay uncovered: the registry applies those through its own additive plan. Any other change is refused. Measures the candidate on the disposable database the runtime configuration names, and writes descriptor.json and rehearsal.json under <OUTPUT>/modules/<MODULE>/migrations/<ID>. Pass <OUTPUT> as —reviewed-migrations to test and package. Never overwrites an existing migration.
bregctl migration draft [OPTIONS] --baseline-package <ABSOLUTE_DIRECTORY> --runtime-config <ABSOLUTE_FILE> --output <ABSOLUTE_DIRECTORY> --module <LOCAL_ID> --id <LOCAL_ID> <PROJECT>Arguments
Section titled “Arguments”| Argument | Always required | Default | Values | Environment | Description |
|---|---|---|---|---|---|
<PROJECT> | Yes | n/a | n/a | n/a | Base Registry Engine project directory. A symbolic link at any component of this path is refused. |
Options
Section titled “Options”| Option | Always required | Default | Values | Environment | Description |
|---|---|---|---|---|---|
--baseline-package <ABSOLUTE_DIRECTORY> | Yes | n/a | n/a | n/a | Absolute directory of the chain tip package the successor follows. A symbolic link at any component of this path is refused. |
--runtime-config <ABSOLUTE_FILE> | Yes | n/a | n/a | n/a | Runtime configuration file of the disposable schema-test database. A symbolic link at any component of this path is refused. |
--posture <POSTURE> | No | n/a | n/a | n/a | Declared posture: development or production. Unset means production |
--output <ABSOLUTE_DIRECTORY> | Yes | n/a | n/a | n/a | Absolute reviewed-migrations directory the draft is written under. A symbolic link at any component of this path is refused. |
--module <LOCAL_ID> | Yes | n/a | n/a | n/a | Module the migration directory belongs to |
--id <LOCAL_ID> | Yes | n/a | n/a | n/a | Identifier of the migration, also its directory name |
--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 (see a summary with ‘-h’) |
Generation contract
Section titled “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.
Cookies on Registry Stack
We use optional cookies to understand how you use the main Registry Stack website and this documentation. If you contact us, we may link this activity to your enquiry. You can change your choice at any time. Read the privacy policy.
Your browser asks sites not to track you, so optional tracking stays off.
We could not use or save that choice. Optional tracking remains off.