Chat with us, powered by LiveChat

This website uses cookies

Our website, platform and/or any sub domains use cookies to understand how you use our services, and to improve both your experience and our marketing relevance.

Our Magento Customers Get 1-Click Hosting and 0.37ms Load Time. Get FREE $20 Credit with Promo Code 'BOOSTMAG.' Join Now!

How to install Sample Data in Magento 2

August 13, 2018

1 Min Read
Magento 2 Sample Data
Reading Time: 1 minute

Installing Magento 2 on Cloudways Managed Magento Platform is easy. But having the skeleton of the Magento store is not enough, especially if you are running your server on the Magento optimized platform of Cloudways. Therefore, in this blog, we are going to guide you on how you can make your Magento 2 store ready to test with Sample Data.

There are two common methods by which we can setup Magento 2 Sample Data in your store. Composer and Magento CLI. For the sake of consistency, I will use Magento CLI in this post.

Step 1: Magento CLI

Make sure that Magento CLI path is exported. From store’s webroot, Issue the following command if Magento CLI’s path is not exported.

export PATH=$PATH:$(pwd)/bin

Step 2: Installation of Sample Data

Change your current directory to Magento’s Webroot and execute the following command:

magento sampledata:deploy

There may be a chance that you will face error about URL authentication to repo.magento.com. If this is true, then execute “composer update” command. It will ask you for the username password which we’ve created from Magento Connect Account section.

Step 3: Finalize Installation

We will now use “magento setup:upgrade” command which will re-compile the code and will clear the cache.

magento setup:upgrade

Your Magento store is now ready for you to start testing with sample data. You can add products, delete products, try out the payment systems, and test your server load as well. If you have any issue in this process, you can comment below and I would be glad to help you out with the issue.

Share your opinion in the comment section. COMMENT NOW

Share This Article

Boost Your Magento Store Performance by 5x Times & Maximize Your Sales

Our fastest Magento hosting can help you in growing your business revenue by 500%

Syed Maad Jahangir

Syed Maad Jahangir worked as Senior System Engineer at Cloudways.

Get Our Newsletter
Be the first to get the latest updates and tutorials.

Do you like what you read?

Get the Latest Updates

Share Your Feedback

Please insert Content

Thank you for your feedback!