Blog Details

How to install sample data in magento2

  • Admin
  • 0 Comments

Sometimes we need a sample data to test the functionality of Magento or during our custom extension development.

Magento provides a different ways to install the sample data on your system. But the easiest way of installation is using Magento CLI


You can execute following command on your local and it will install sample data within a few seconds.

 
$ php bin/magento sampledata:deploy
 

Once everything is done then you need to run the following commands.

$ php bin/magento setup:upgrade
$ php bin/magento setup:di:compile

And you are ready with the sample data

magento-storefront-with-sample-data

Leave a Reply

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