Skip to content
SDK

SDK 0.15.0

  • cms.getTaxonomy({ key, region }) takes a region, by key or short code such as germany or de, as the other calls do. Terms hidden in that region are left out, and labels the region has of its own win over the language's. Without region the space's first region is used, so terms hidden there are left out too. The answer carries region, the region the labels follow, or null when the space has none. A language without its own label now falls back along the region's language fallbacks before the default label.
  • The mirror keeps taxonomies per region as well, so getTaxonomy with region is answered from it when CMS Orbit can't be reached.
  • npx cms-orbit import <file> imports entries, files, references, translations and redirects from an import file with a management token (ORBIT_TOKEN, ORBIT_ORGANISATION and ORBIT_SPACE). --dry-run checks every entry against the schema, every file's address and the redirects without changing anything, and --publish publishes once imported. Each entry's key is kept as its external ID, so running it again updates what it made, with no state file. See Import content with the Management API.
  • npx cms-orbit promote --from staging --to production --region <key> --locale <code> publishes every published entry of a language, or of one folder with --folder, in another environment, with its redirects. --dry-run shows what would change.