Skip to content

Instantly share code, notes, and snippets.

@davidalger
Created November 18, 2015 17:17
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 davidalger/4700965288e75070e99c to your computer and use it in GitHub Desktop.
Save davidalger/4700965288e75070e99c to your computer and use it in GitHub Desktop.
Install M2 for a new project
#!/usr/bin/env bash
cd /sites
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition m2.demo
cd m2.demo
chmod +x bin/magento
bin/magento sampledata:deploy
composer update
mysql -e 'create database m2_demo'
bin/magento setup:install --base-url=http://m2.demo --backend-frontname=backend \
--admin-user=admin --admin-firstname=Admin --admin-lastname=Admin \
--admin-email=user@example.com --admin-password=A123456 \
--db-host=dev-db --db-user=root --db-name=m2_demo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment