I want to generate some fake data for testing on demand. Either console script or button within admin. Ideally have the option of generating x number of customers/customer addresses, orders (either as they are, invoiced or invoiced and shipped), products (simples are fine although could extend to other types), categories. Essentially speed up extension and template development.

I always feel the sample data does more than it should. I don't need all the other configuration changes. Less/easier to delete after use. Does anyone have any suggestions on how to do this? Or know of an extension?

I looked at this https://github.com/experius/Magento-2-Module-Experius-FakeMyData but I think this is the wrong approach

I was hoping to find an M2 version of this https://github.com/ovanschie/mageFaker

2 Answers 2


Started to put together something myself. Enjoy!



I hope it helps, easy for your reference generate more sample data, we can use the below command to generate sample data profile (small, medium, large, and extra large).

bin/magento setup:perf:generate-fixtures /var/www/html/magento2/setup/performance-toolkit/profiles/ce/small.xml
  • Thanks for heads up. link for ref. That's closer to what I need although would be better if you could pick and choose what to generate instead of choosing a profile. I'm going to study the code to see if I can put together something myself. Commented May 7, 2019 at 22:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.