Export Headless CMS content models, content model groups and content entires into a local file, or copy them directly to another Webiny Headless CMS system.

How to setup?

  1. Run yarn
  2. Copy config.example.js to config.js then update the file:
    • export key should contain endpoint and API key of the source system
    • import key should contain endpoint and API key of the target system
    • optionally, set a TO_PATH and FROM_PATH if you want to export/import to/from a file
  3. Run node index.js

Filters

For use only when exporting you can create filter files in the "filters" directory. These allow the "where:" field to be applied to the export. See filter-sample.json"for an example.

TODOS

  • Convert to Typescript
  • Add support for exporting & importing FileManager files
  • Improved logging and error handling.
  • Support parallel updates to speed up import.
  • Consider supporting mapping files.