The Contentstack Migration Framework enables users to seamlessly migrate content from a legacy Content Management System (CMS) to Contentstack. The framework simplifies the migration process with an intuitive interface and step-by-step workflow for importing content, mapping content types, and migrating data into a stack within Contentstack.
This guide outlines how to install the migration framework using Docker on Windows and macOS systems.
Before you begin the installation process, ensure the following requirements are met:
An IDE of your choice, such as Visual Studio Code
Follow the steps below to install the migration framework on your system:
git clone https://github.com/contentstack/migration-v2 && cd migration-v2Run the following command:
For macOS/Linux:
chmod +x setup-docker.sh && ./setup-docker.sh
For Windows, use Git Bash or WSL for better compatibility.
Set line endings to LF in /upload-api/docker-entrypoint.sh to avoid setup errors. CRLF endings may result in error during setup.

Run the following command:
chmod +x setup-docker.sh && ./setup-docker.shWarning: Ensure you select the correct legacy CMS to avoid any errors during the migration.
For macOS/Linux:
/Users/{{username}}/Downloads/{{sitecore_export}}.zipFor Windows:
C:\\Users\\{{username}}\\data\\{{sitecore_export}}.zip
Note: The file type may vary depending on your legacy CMS. For example, Sitecore data is exported in ZIP format, whereas Contentful data is exported in JSON.

This completes the installation of Contentstack Migration Framework. Refer to the Perform Content Migration section for further steps based on your legacy CMS.