PreviewBlueprintUpdate
Previews the changes a blueprint update would make without applying them.
Examples
Preview an update; blanking candidates are listed after the JSON result:
octo-cli -c PreviewBlueprintUpdate -tv "Eda.Adapter-1.2.0"
CI gate: fail the job when the update would blank a tenant value:
octo-cli -c PreviewBlueprintUpdate -tv "Eda.Adapter-1.2.0" -fb
CI gate: fail the job when the update's CK models would break an installed model:
octo-cli -c PreviewBlueprintUpdate -tv "Eda.Adapter-1.2.0" -fob
Options
| Short | Long | Required | Description |
|---|---|---|---|
-tv | --targetVersion | yes | Fully-qualified target blueprint id, e.g. 'MyBlueprint-2.0.0' |
-m | --updateMode | no | Update mode: Safe, Merge (default), Full, or Migration |
-fb | --failOnBlanking | no | Exit with a non-zero code (-5) when the update would blank at least one tenant value (for CI gates) |
-fob | --failOnBlocked | no | Exit with a non-zero code when the CK models of the update would break an installed model (tenant upgrade guard, for CI gates) |
Notes
A blueprint seed that carries an empty value, or omits an attribute, would clear what the tenant has entered.
UpdateBlueprint keeps such tenant values unless they are confirmed with --confirm-blanking or --allow-blanking.
The blanking list shows entity, attribute, reason and a kind/size summary of the current and incoming value - never the value itself.
The Reason column is printed as the service reports it: SeedEmpty, SeedOmitted, or ResetToDefault (the current value differs from the CK default and the incoming value is the default).
Tenant-owned seed entities (rtBlueprintLocked: false) are never rewritten: the output lists those left untouched ('tenant-owned, skipped') and those the tenant deleted that stay deleted, with key, type and rtId ('-' when deleted) and no values. They are not blanking and do not trigger --failOnBlanking.
The JSON result is written to standard output; the blanking and tenant-owned tables and the warnings are log output.
Services older than the blanking protection report no blanking list.
Tenant upgrade guard: isBlocked, ckUpdateSet and blockers in the JSON list the installed models the CK models of the update would break (dependent, update, kind, subject, code, resolve hint); the same lines are logged. Nothing is written. UpdateBlueprint refuses such an update (CK_UPGRADE_BLOCKED) unless it is forced with --force. Services older than the guard report no blockers.