How to install Magento 2 via Command Line¶
Download latest version at : https://www.magentocommerce.com/download
After download, you can upload to your server then extract it into xampp/htdocs/magento20
Open phpmyadmin and create database with name ‘magento20’
Move to folder xampp/htdocs/magento20/bin
- Hold Shift key then right click to folder:
Run this command line
php magento setup:install --base-url=http://localhost.com/magento20/ --db-host=localhost --db-name=magento20 --db-user=root --admin-firstname=Magento --admin-lastname=User --admin-email=user@example.com --admin-user=admin --admin-password=admin123 --language=en_US --currency=USD --timezone=America/Chicago --use-rewrites=1Final, run this command line to create static content:
php magento setup:static-content:deploy
Home Page
Products Page
Admin
Boost sales with Magento One Step Checkout extension and Magento One Step Checkout