cancel
Showing results for 
Search instead for 
Did you mean: 

How to run magento script in magento 2.0? Give an example to add attributes in magento 2 via script

How to run magento script in magento 2.0? Give an example to add attributes in magento 2 via script

In previous versions of magento we use 

require_once '../app/Mage.php';
Mage::app('admin');

This type of code to get all the property of mage. Now in the magento 2x we do not have any mage.php file. What is require file in this version which is equivalent to mage.php? 

1 REPLY 1

Re: How to run magento script in magento 2.0? Give an example to add attributes in magento 2 via sc