Skip to content

Instantly share code, notes, and snippets.

@aliuosio
Last active October 31, 2018 19:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aliuosio/03912ab06be27dd90a5f83259665b0e6 to your computer and use it in GitHub Desktop.
Save aliuosio/03912ab06be27dd90a5f83259665b0e6 to your computer and use it in GitHub Desktop.
Magento 2 Console Install with Sampledata
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition .
find var vendor pub/static pub/media app/etc -type d -exec chmod u+w {} \;
find var vendor pub/static pub/media app/etc -type f -exec chmod u+w {} \;
chmod u+x bin/magento;
bin/magento setup:install \
--db-host=database \
--db-name=magento2 \
--db-user=app \
--db-password=app \
--backend-frontname=admin \
--base-url=http://app.doc/ \
--language=de_DE \
--timezone=Europe/Berlin \
--currency=EUR \
--admin-lastname=Admin \
--admin-firstname=Admin \
--admin-email=admin@example.com \
--admin-user=admin \
--admin-password=admin123 \
--cleanup-database \
--use-rewrites=1 \
--use-sample-data
bin/magento setup:upgrade;
bin/magento indexer:reindex;
bin/magento cache:clean;
bin/magento deploy:mode:set
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment