If you are a Magento developer or a merchant and you have just installed a Magento 2 application, next thing you would like to do is go through different pages like categories and product pages in admin as well as frontend to look how these pages will look.
In this tutorial you will learn how to install sample data in Magento 2 via command line to populate these pages with some test data so that you do not have to manually create these pages.
Command to install sample data:
Run setup:upgrade and cache:flush commands:
bin/magento setup:upgrade && bin/magento cache:flush
Command to remove sample data modules: