graflo.cli.revision¶
Manifest revision-chain CLI.
Distinct from migrate_schema: that plans and executes changes against a
database. This records and replays changes to the manifest — the contract
plane. Applying a revision chain to a live database is not supported yet.
apply_cmd(base_path, upto, store, output_path)
¶
Replay the stored chain onto a base manifest, verifying every hash.
Source code in graflo/cli/revision.py
downgrade_cmd(base_path, current_path, upto, store, output_path)
¶
Reconstruct the manifest as of an earlier revision.
Source code in graflo/cli/revision.py
history_cmd(store)
¶
List the stored chain, oldest first.
Source code in graflo/cli/revision.py
new_cmd(from_path, to_path, label, hints_path, store, dry)
¶
Derive a change set between two manifests and record it.
Source code in graflo/cli/revision.py
revision()
¶
verify_cmd(base_path, against_path, store)
¶
Check that the chain replays cleanly, and optionally matches a manifest.