Magento2 install by command line
- Bilal Malik
- Sep 28, 2019
- 1 min read
Updated: Aug 21, 2020
We can install Magento 2 by using below Magento command. This is my favorite way of installation because it throws an error if any and we can check the progress.
bin/magento setup:install --base-url=http://local.ce231.com/ --db-host=127.0.0.1 --db-name=magento2 --db-user=magento --db-password=dbpassword --admin-firstname=Admin --admin-lastname=User --admin-email=your@mail.com --admin-user=username --admin-password=yourpassword --language=en_US --currency=USD --timezone=America/Chicago --use-rewrites=1
If you installed successfully, you can see the below success message.

Comments