SDK
SDK 0.16.0
npx cms-orbit loginsigns the command line in to CMS Orbit in your browser, as you, with your role's permissions in every organisation you belong to. It renews itself and lasts up to 30 days;cms-orbit logoutends it, andcms-orbit login --tokenstores a management token instead.cms-orbit usershows who you are signed in as, your organisations and the server, andcms-orbit signupopens the sign-up page.- Commands are grouped, such as
cms-orbit logs list, with--helpon every level and--jsonfor scripts.cms-orbit logsandcms-orbit reportslist and prune the log of what the command line changed and the reports bulk commands write.generate,importandpromotework as before. See CMS Orbit CLI. cms-orbit schema initwrites your space's content types and components as TypeScript files incms/schema/, one per definition and typed with the newCmsContentTypeDefinitionandCmsComponentDefinitiontypes, so your editor completes them.schema validatechecks them without signing in (--remotealso checks field types against the server),schema diffshows what would change, andschema pushapplies it: it shows the diff, asks unless you pass--yes, has--dry-run, refuses to remove fields holding values or change their types unless you pass--allow-destructive, never removes what entries use, and saves a snapshot first.schema rollbacklists the snapshots and puts one back.--from-spacecompares with or copies from another space.cms-orbit components pullandcomponents pushkeep components as JSON files, one per component, with--onlyand the same safety asschema push.cms-orbit types generateisgeneratewith the same options, and--from cms/schemawrites the types from a schema folder.cms-orbit languages listandlanguages pullshow or write an environment's regions and languages, with address prefixes, currencies, time zones, defaults and fallbacks.cms-orbit content findfinds entries by type, folder, address, status, date and words, and by meaning with--meaningwhere Gravity is on, as a table or JSON Lines.content pullwrites each entry's draft to a JSON file per entry,content pushsaves them back as drafts (--dry-runruns CMS Orbit's checks without saving), reports entries someone changed since you pulled them instead of overwriting them, and publishes only with--publish.content validatechecks entries in a folder or in the space against the content types and components.cms-orbit media pullandmedia pushdownload and upload the media library with alt text, titles, captions, tags, focus points and media folders. Push takes a folder, a file or a web address, skips files the library has, and stops clearly when the plan's storage is full.cms-orbit taxonomies pull,pushanddeletekeep taxonomies and their terms as JSON or CSV files. Delete asks to confirm, refuses a taxonomy fields still use unless--force, and keeps a copy that push puts back.cms-orbit migrations generatewrites a typed migration file for a component or content type,migrations runapplies it to drafts (--dry-runshows each entry's changes) after saving a snapshot, andmigrations rollbackputs the drafts back from it.cms-orbit project createmakes a website project from a starter for Next.js, React, Astro, Nuxt, Vue, SvelteKit, Angular, Laravel or Symfony, or the website template, with its env file pointed at your space and a public key.