0

I successfully install Magento 2 without sample data on my windows Xampp as following process:

C:\Users\Matin>D:
D:\>cd D:\xampp\htdocs\magento2
D:\xampp\htdocs\magento2>
D:\xampp\htdocs\magento2>composer install

Then I install from browser as magento previous version..  

Now How can i take sample data of my magento2 site. I try to read http://devdocs.magento.com/guides/v2.0/install-gde/install/sample-data.html#instgde-install-sample-intro but Step 5 can not understandable for me

5.In the first section, add "minimum-stability": "beta", before license. A snippet follows:
1

1 Answer 1

2

Step 5 describes altering the composer.json file that came with your Magento 2. After adding "minimum-stability": "beta",, the top of the composer.json file should look similar to this:

{
    "name": "magento/magento2ce",
    "description": "Magento 2 (Community Edition)",
    "type": "project",
    "minimum-stability": "beta",
    "version": "1.0.0-beta",
    "license": [
        "OSL-3.0",
        "AFL-3.0"
    ],

You would then continue by saving the file and performing step 7 in the explanation (execute composer config repositories.magento composer http://packages.magento.com). In step 8, execute composer require magento/sample-data:~1.0.0-beta. Wait for the process to finish installing the additional dependencies.

The final step would be to install the sample data itself. Run the magento executable in the bin folder of your Magento 2 installation like the following:

php magento setup:upgrade
php magento sampledata:install <your Magento administrator user name>

Installing the sample data can take a while.

2
  • where i add this line ? can u mention line number or before/after line
    – matinict
    Aug 25, 2015 at 10:19
  • The composer.json file is in the root of your Magento installation. In my case I added it on line 5, just before the "version" field. Aug 25, 2015 at 10:25

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