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.
- Run
yarn
- Copy
config.example.js
toconfig.js
then update the file:export
key should contain endpoint and API key of the source systemimport
key should contain endpoint and API key of the target system- optionally, set a
TO_PATH
andFROM_PATH
if you want to export/import to/from a file
- Run
node index.js
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.
- 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.