Important commands in magento2

Run this command from terminal having the Root path of the files of magento

  1. php bin/magento setup:upgrade
  2. php bin/magento setup:di:compile
  3. php bin/magento setup:static-content:deploy
  4. php bin/magento cache:clean

Layout structure start pages

Root/ vendor/magento/module-theme/view/frontend/layout/default.xml

Table core_config_data is where we need to change the base url while migrating the site from one domain to another and follow the above 4 commands in the same order

Static content deploy particular theme in magento2

php bin/magento setup:static-content:deploy –area frontend –theme Inspirationconcepts/id4sports

Enable Development mode in Magento2

bin/magento deploy:mode:set developer


Magento2 Template Development steps

Template strucure

Root Magento folder


Default folder will be there Magento

We need to create our our own folder structure for custom theme creation

Main folder name inside the path ‘app/design/frontend/’ create some folder here and name it example ‘Mytheme’ this is called the vendor name

And create a subfolder inside the folder which you created which is called the Theme folder and you can name it as you like