Convert XML layout files

All Magento CLI commands must be run by the file system owner.

Use this command to update your layout XML files if you update the corresponding Extensible Stylesheet Language Transformations (XSLT) stylesheet.

Command options:

bin/magento dev:xml:convert [-o|--overwrite] {xml file} {xslt stylesheet}


  • {xml file}—is the full path and file name of a layout XML file to convert (required)
  • {xslt stylesheet}—is the full path and file name of an XSLT stylesheet file to use for conversion (required)
  • -o|--overwrite—include this option to overwrite the existing XML file