How to install Sample data after Magento 2 installation ?
Welcome to Kishan Savaliya's Magento 2 Blog.In previous blog post, you learned how to install Magento 2 using Composer ? Hope you like that tutorial and you had completed your Magento 2 installation successfully.
Now in this post, you can learn how to install sample data in Magento 2 after successful installation via terminal (command line). This is very easy, you can easily set up it. So let's start with steps...
Step - 1. Open Terminal and Go to you Magento 2 Installation directory.
You have to open your terminal, and then go to you Magento 2 root directory.
Step - 2. Run below command inside your root Magento 2 directory.
Now, you're in your root directory of Magento 2, where you want to install sample data. So you can run below command there to install sample data via command line (terminal).
This command will take sometime, it'll download sample data modules in your vendor/magento directory. Whenever you're trying to run above command, it'll ask you Magento 2 authentication keys like username and password. You can follow this guideline to get that authentication keys.
Step - 3. Complete sample data installation.
Now final step, once above command finished successfully there then after you have to run below command. This command will enable and register above new modules in your Magento 2.
Step - 4. Open your Front-end or Back-end URL and Verify sample data.
Now, go to your home page and verify sample data there, also you can verify it in back-end.
Hope you may like this article and can understand this easily. You can add comments below in case if you have any questions regarding this article or if I missed anything here. I will check and get back to you with proper solution.
If you enjoyed this blog post, share it with friends!