Skip to main content

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​

ShortLongRequiredDescription
-cn--catalogNameyesCatalog name
-m--modelIdyesModel 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--forcenoImport 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--waitnoWait for a import job to complete