Video Lesson: Install & deploy sample data in Magento

Install & deploy sample data in Magento

Install and deploy Magento sample data with bin/magento sampledata:deploy and setup:upgrade for a full demo store.


Lesson Content

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.

Maggie

Hey, I'm Maggie! 👋

Ask me anything.

Want to chat with Maggie?

Log in for AI tutor access.

Comments

Join the discussion!

Comments

Want to comment on this lesson?

Enroll in this course to leave comments.