Built.io Contentstack is a headless CMS with an API-first approach that puts content at the centre. It is designed to simplify the process of publication by separating code from content.
This utility helps you to export content from Contentstack. The content is exported in JSON format and stored in file system.
Download this project and install all the modules using following command.
npm installUpdate configuration details at config/index.json :
"base_locale": {"name": <<YOUR MASTER LOCALE NAME>>, "code":<<YOUR MASTER LOCALE CODE>>}
"email": <<YOUR EMAIL ADDRESS>>
"password" : <<PASSWORD>>
"source_stack" : <<STACK_API_KEY>>
"data": <<FOLDER PATH WHERE DATA SHOULD BE EXPORTED>>
After the configuration, you are ready to export content.
npm run export
npm run export <<module name>>
Module names and sequence can be as follows:
- assets
- environments
- locales
- contentTypes
- entries
Note: Before exporting entries, you must export locales, assets and content types.
- It will migrate only latest published version of entry.
This project is licensed under MIT license