The numerous features that magento comes with helps store owners to provide an excellent shopping experience to their customers and also fine tune the store in order to have optimum performance and search engine rankings.
There are many store owners who would like to have their site setup with Magento or are considering to migrate from other ecommerce platforms to Magento and installing Magento is the first step to start with.
There are 2 ways to get sample data installed into your Magento store. One is by downloading the most latest version package that comes along with sample data from Magento Resources:
The other method to install sample data is via command line option provided by Magento 2. We will look into this step by step:
Open SSH terminal and connect to the server using Putty or other softwares. If you are using linux, you can use the linux terminal to SSH into the server in which the Magento is hosted. Navigate to the root directory folder in which Magento is installed and execute the following command:
php bin/magento sampledata:deploy
Executing this command would prompt for authentication to repo.magento.com. You may need to login to your magento account in order to get this information. Open up Magento website and login using your email and password. From the top right menu, navigate to My Profile:
In the My Account page, click on the Access Keys under the Marketplace tab.
Click on the “Create A New Access Key” button:
This would display a popup that prompts to enter the Access Key name. Enter the key name and click on the Ok button:
This would create a new Public-Private key pair. The Public key is your username and the Private Key is the password. Enter these values in the SSH terminal and the sample data installation will get initiated. Wait for the installation process to complete. Once the installation process is completed, you can log in to the admin panel to see the sample demo products created. Sample data installation might come in handy when you are doing performance testing on the website.