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= 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 \

Leave a comment

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.

Notice: ob_end_flush(): failed to send buffer of zlib output compression (0) in /home/wwwwebam/public_html/blog/wp-includes/functions.php on line 4339