Skip to content

Instantly share code, notes, and snippets.

@peterjaap
Last active March 2, 2016 14:36
Show Gist options
  • Save peterjaap/17a938755ea376b807d3 to your computer and use it in GitHub Desktop.
Save peterjaap/17a938755ea376b807d3 to your computer and use it in GitHub Desktop.
Install M2 database
bin/magento setup:install \
--base-url=http://mage2a.dev/ \
--db-host=localhost \
--db-name=mage2a \
--db-user=user \
--db-password=password \ # or leave this line out for dev
--admin-firstname=firstname \
--admin-lastname=lastname \
--admin-email=email@example.com \
--admin-user=username \
--admin-password=password \
--language=nl_NL \
--currency=EUR \
--timezone=Europe/Amsterdam \
--cleanup-database \ # this drops the db beforehand
--sales-order-increment-prefix="ORD$" \
--session-save=db \
--use-rewrites=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment