Skip to main content
Get Started

Migration Guide

Migrating from Magento Open Source to Mage-OS is straightforward and typically takes under 30 minutes. Your existing extensions, themes, and customizations will continue to work with little or no changes needed.

Benefits

Why Migrate to Mage-OS?

Mage-OS is built on the same Magento Open Source foundation you already trust, enhanced with community-driven improvements.

Enhanced Performance

Optimized caching and database queries for faster page loads and better user experience.

Faster Security Patches

Community-accelerated security updates, often released ahead of upstream Magento.

PCI DSS 4.0 Ready

Built-in compliance settings for modern payment security requirements.

AI-Powered Translation

Automatic content translation using DeepL, OpenAI, or Google Gemini.

Theme Optimization

Back/forward cache support and speculative preloading for better Core Web Vitals.

No Vendor Lock-in

Fully open source with transparent, community-led governance.

Preparation

Pre-Migration Checklist

Complete these items before starting your migration

Backups

Complete file system backup of your Magento installation
Database backup (use the command in Step 1 below)
Media files backup (pub/media directory)
Custom configuration files backup (.env, app/etc/env.php)

Environment

SSH/command-line access to your server
Composer 2.8+ installed (composer --version)
Sufficient disk space (at least 2x current installation size)
Current Magento version is 2.4.6 or later

Recommended

Review third-party extension documentation
Notify your team about planned migration window
Prepare a staging environment for testing
Step by Step

Migration Process

Follow these four steps to migrate your Magento store to Mage-OS

Step 1: Create Backup

Back up your database and files before making any changes. This ensures you can rollback if needed.

Step 2: Switch Repository

Add the Mage-OS repository and swap the product packages from Magento to Mage-OS using Composer.

Step 3: Run Upgrade

Execute setup:upgrade, compile DI, deploy static content, reindex, and flush caches.

Step 4: Verify Installation

Confirm Mage-OS version and test your storefront and admin panel to ensure everything works correctly.

1 Create Backup

# Backup database
mysqldump -u username -p database_name > backup.sql

# Backup files
tar -czvf magento-backup.tar.gz /path/to/magento

2 Switch to Mage-OS Repository

Use the official migration script to automate the repository switch and dependency updates. Run this command from your Magento root directory:

cd /path/to/your/magento
bash <(curl -s https://raw.githubusercontent.com/mage-os-lab/migrate-m2-to-mageos/refs/heads/main/migrate-to-mage-os.sh)

3 Run Upgrade

# Run setup upgrade
bin/magento setup:upgrade

# Compile DI
bin/magento setup:di:compile

# Deploy static content
bin/magento setup:static-content:deploy -f

# Reindex
bin/magento indexer:reindex

# Flush cache
bin/magento cache:flush

4 Verify Installation

# Check version
bin/magento --version

# Should output: Mage-OS 2.x.x
Full Compatibility

Compatibility

Mage-OS is designed for seamless migration. Your existing Magento ecosystem remains fully functional.

Extensions

Marketplace extensions, third-party payment gateways, shipping providers, custom modules, and API integrations all continue to work.

Themes

Luma, Blank, custom themes, third-party themes like Hyva and Porto, and headless PWA frontends are fully compatible.

Customizations

Custom API integrations, event observers, plugins, layout/template overrides, and CLI commands work without changes.

Best Practices

Production Migration

For production environments, use a staged approach

1

Clone Environment

Clone your production to a staging environment first.

rsync -avz production/ staging/
2

Test on Staging

Perform migration on staging and thoroughly test:

  • Checkout flow
  • Admin panel functionality
  • Third-party integrations
  • Custom functionality
3

Schedule Maintenance

For the final switchover:

  1. Enable maintenance mode
  2. Sync any database changes
  3. Perform migration
  4. Test critical paths
  5. Disable maintenance mode

Post-Migration

Congratulations on migrating to Mage-OS! Complete these verification steps.

Verify Your Installation

bin/magento --version

Test Critical Functionality

Storefront - Browse products, add to cart, test checkout
Admin Panel - Log in and navigate key sections
Payment Methods - Verify gateway connections
Shipping - Confirm shipping calculations
Integrations - Test external system connections

Explore New Mage-OS Features

Mage-OS 2 includes powerful new capabilities:

PCI DSS 4.0 Compliance

Admin > Stores > Configuration > Security

AI-Powered Translation

Admin > Stores > Configuration > Services > AI Translation

Theme Optimization

Enable bfcache and speculative loading in Advanced settings

Enhanced Page Builder

CMS Widget support with live previews

Troubleshooting

Solutions for common migration issues

Need Help?

The Mage-OS community is here to support your migration journey

Community Support (Free)

Professional Support

For enterprise migrations or complex environments, our partner network offers:

  • Dedicated migration assistance
  • Custom development and integration
  • Ongoing support and maintenance
Find a Mage-OS Partner

Next Steps

Continue your Mage-OS journey

Our Partners

Support Mage-OS