ImportFromCatalog
Imports one or more CK models from a catalog with all dependencies. A comma-separated -m list is imported as one set (judged together by the tenant upgrade guard, sent in dependency order). Use -w to wait for completion. Requires the tenant role DataModelManagement (TenantOwners carry it); otherwise 403 DataModelManagementRequired.
Examples
Import with wait:
octo-cli -c ImportFromCatalog `
-cn "PublicGitHubCatalog" `
-m "Industry.Energy-2.0.0" `
-w
Import without waiting (prints the job id):
octo-cli -c ImportFromCatalog -cn "PublicGitHubCatalog" -m "Industry.Energy-2.0.0"
Upgrade models that pin each other exactly in one guarded import, without force:
octo-cli -c ImportFromCatalog `
-cn "PublicGitHubCatalog" `
-m "Industry.Basic-2.6.0,Industry.Energy-3.6.0" `
-w
Import although the update breaks an installed model (deliberate override):
octo-cli -c ImportFromCatalog `
-cn "PublicGitHubCatalog" `
-m "Industry.Energy-2.0.0" `
-f
Options
| Short | Long | Required | Description |
|---|---|---|---|
-cn | --catalogName | yes | Catalog name |
-m | --modelId | yes | Model ID (e.g., Industry.Energy-2.0.0) or a comma-separated list imported as one set (e.g., Basic-2.5.0,Industry.Basic-2.6.0,Industry.Energy-3.6.0) |
-f | --force | no | Import even if the update would break installed models (tenant upgrade guard). The broken models become ResolveFailed until they are updated; without this option the import is refused and nothing is changed |
-w | --wait | no | Wait for a import job to complete |