Installing Magento 2 solely from Composer

The documentation on how to install a Magento 2 project solely using the command line is pretty limited so here are the steps I take on creating a project.

composer create-project –repository=https://repo.magento.com/ magento/project-community-edition /your/local/dir/ 

The above will install all the packages need and sticks them in your directory.

Once that has finished you then can start installing Magento 2, to do that here is an install script.

bin/magento setup:install \
–base-url=http://magento2.local \
–db-host=localhost \
–db-name=magento2 \
–db-user=root \
–db-password=mysql \
–backend-frontname=admin \
–admin-firstname=admin \
–admin-lastname=admin \
[email protected] \
–admin-user=admin \
–admin-password=admin123 \
–language=en_US \
–currency=USD \
–timezone=America/Chicago \
–use-rewrites=1

Magento | | No Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

« »