Skip to content
Registry StackDocsv0.49.0

bregctl migration draft command reference

View as Markdown

Write the reviewed migration directory for a successor whose changes need no SQL.

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.

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>
ArgumentAlways requiredDefaultValuesEnvironmentDescription
<PROJECT>Yesn/an/an/aBase Registry Engine project directory. A symbolic link at any component of this path is refused.
OptionAlways requiredDefaultValuesEnvironmentDescription
--baseline-package <ABSOLUTE_DIRECTORY>Yesn/an/an/aAbsolute directory of the chain tip package the successor follows. A symbolic link at any component of this path is refused.
--runtime-config <ABSOLUTE_FILE>Yesn/an/an/aRuntime configuration file of the disposable schema-test database. A symbolic link at any component of this path is refused.
--posture <POSTURE>Non/an/an/aDeclared posture: development or production. Unset means production
--output <ABSOLUTE_DIRECTORY>Yesn/an/an/aAbsolute reviewed-migrations directory the draft is written under. A symbolic link at any component of this path is refused.
--module <LOCAL_ID>Yesn/an/an/aModule the migration directory belongs to
--id <LOCAL_ID>Yesn/an/an/aIdentifier of the migration, also its directory name
--format <FORMAT>Nohumanhuman, jsonn/aEmit the selected command’s report in this format
-h, --helpNon/an/an/aPrint help (see a summary with ‘-h’)

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.