Setup Scripts In Magento 2 Website

Follow these steps to create a new module with scripts in Magento 2.
Step 1: Create module.xml file.

app/code/CustomScripts/SetupScripts/etc/module.xml

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="CustomScripts_SetupScripts" setup_version="1.0.0" />
</config>

Leave a Reply

Your email address will not be published. Required fields are marked *