CheckUpgrade
Pre-flight check for CK model upgrade/migration. 'Breaking Changes' is the migration view of the model itself; 'Would break' (isBlocked/blockers) is the tenant upgrade guard: which installed models the import would break, also for System.
Examples
Basic usage:
octo-cli -c CheckUpgrade -cn "PublicGitHubCatalog" -m "Basic-2.0.2"
Output:
Model: Basic
Installed Version: 2.0.0
Target Version: 2.0.2
Upgrade Needed: True
Migration Path: True
Breaking Changes: False
Blocked update: importing it would break installed models. Read-only, the exit code is unchanged:
octo-cli -c CheckUpgrade -cn "PublicGitHubCatalog" -m "Basic-2.5.0"
Output:
Model: Basic
Installed Version: 2.4.0
Target Version: 2.5.0
Upgrade Needed: True
Migration Path: True
Breaking Changes: False
Would break:
- EnergyCommunity.Registration-2.8.0: exact pin Basic-2.4.0: Basic-2.5.0 replaces it
resolve: update EnergyCommunity.Registration to 2.10.0 first
Options
| Short | Long | Required | Description |
|---|---|---|---|
-cn | --catalogName | yes | Catalog name |
-m | --modelId | yes | Model ID (e.g., Industry.Energy-2.0.0) |