Skip to content

Instantly share code, notes, and snippets.

@freestream
Last active September 7, 2015 06:30
Show Gist options
  • Save freestream/2ff490b988c2ea24b848 to your computer and use it in GitHub Desktop.
Save freestream/2ff490b988c2ea24b848 to your computer and use it in GitHub Desktop.
Install Magento2 Sample Data
Update composer.json and add following:
{
...
"require": {
"magento/framework": "~1.0.0-beta",
"magento/sample-data": "1.0.0-beta",
"magento/sample-data-media": "~0.42.0-beta2"
},
"repositories": [
{
"type": "composer",
"url": "http://packages.magento.com/"
}
],
"minimum-stability": "beta"
...
}
Then run:
composer update
And install sample data:
php -f dev/tools/Magento/Tools/SampleData/install.php -- --admin_username=admin
The following commands might be working if the previous command generates a stack of errors
/var/www/magento2/bin magento setup:upgrade
/var/www/magento2/bin magento sampledata:install admin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment