Install & deploy Magento sample data
Once you have a vanilla install of Magento set up, the store will be pretty bare. You’ll want to normally work from this clean installation of Magento for a new site build, but when you are either learning development or creating custom modules, you will typically want to simulate a real, working store, and Magento’s sample data allows you to do just that.
From command line, lets run:
bin/magento sampledata:deploy
This downloads a group of packages from Adobe’s servers with Composer. It will take a little while to download all of the packages, so just be patient.
At the point the script completes, note that the install scripts to get the Magento sample data have been completely downloaded, but not yet executed. We can enable the sample data by running:
bin/magento setup:upgrade
After this executes, we can refresh our page and see are fully deployed sample data.