Administration Migrations
Shopware CLI includes built-in checks and fixes for known Shopware Administration migration patterns.
These rules help identify source changes that are required when upgrading Administration extensions between supported Shopware versions. The rules are intentionally limited to patterns that can be identified deterministically.
Check Administration code for migration issues
Run the project fixer to apply supported migration fixes automatically:
shopware-cli project fix /path/to/your/projectFor a single extension:
shopware-cli extension fix /path/to/your/extensionThe fixer includes custom rules for Administration Twig files in addition to the PHP and JavaScript tooling described in Automatic refactoring.
WARNING
project fix and extension fix modify files in place. Run them on a Git branch or a copy of your project so that you can review the changes before committing them.
Administration Twig migrations
Shopware CLI contains a set of known Administration Twig migration rules.
The rules are intended for cases where the old pattern and its replacement are known and can be detected without ambiguity. They are not a general-purpose Administration migration engine and do not guarantee that an extension is fully compatible with a target Shopware version.
Supported rules may cover changes such as:
- Administration component migrations
- Component property or event changes
- Other deterministic Twig patterns with a known replacement
The exact set of rules is maintained by Shopware CLI and can change as new Shopware versions introduce additional migration requirements.
When to use the fixer
Use the Administration migration rules as part of an upgrade workflow:
- Update the Shopware version constraint in your project.
- Run
shopware-cli project fixorshopware-cli extension fix. - Review the generated changes.
- Run your normal validation and tests.
- Check any Administration code that was not covered by a deterministic fixer rule manually.
For extension validation, see Validation.
Limitations
The Administration migration rules are deliberately bounded. For background and manual migration guidance, see the Administration migration guide.
The CLI does not attempt to:
- comprehensively analyse Administration compatibility
- modify arbitrary JavaScript or Vue code
- validate browser behaviour
- automatically resolve ambiguous migration patterns
Manual review is still required for Administration changes that are not covered by a deterministic rule.