> For the complete documentation index, see [llms.txt](https://help.readymage.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.readymage.com/project-development/existing-scandipwa-project-code-migration.md).

# Existing ScandiPWA Project Code Migration

## Steps to migrate ScandiPWA version 4+ projects

1. Ensure that your existing project `scandipwa` theme folder is named **scandipwa**.
2. Clone the instance repository following the instruction [here](/project-development/code-customization-and-local-setup.md#cloning-repository).
3. Replace the following folders/files in the cloned repository root folder from your project:\
   `app/etc/config.php`\
   `app/code`\
   `scandipwa`\
   `composer.json`\
   `composer.lock`\
   `package.json`
4. Add scopes configuration to  app/etc/config.php file following [Magento reference example](https://devdocs.magento.com/guides/v2.4/config-guide/prod/config-reference-configphp.html).
5. Perform [local setup](/project-development/code-customization-and-local-setup.md#local-setup).
6. [Push the code changes](/project-development/code-customization-and-local-setup.md#making-code-changes) to ReadyMage.
7. Perform database migration.
8. Perform media migration.

## Migrating earlier ScandiPWA version projects

Contact [ReadyMage support](https://help.readymage.com/faq/general#how-can-i-contact-customer-support).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.readymage.com/project-development/existing-scandipwa-project-code-migration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
