How to Install Magento 2 Using Command Line

As we all know after released Magento 2.4 is not possible to install Magento from the browser, we have to install Magento using CLI (Command Line Interface). So, We have written this article for those developers who are looking for a way to install Magento 2 using CLI.

Let's get started!!

If you are going to install Magento 2.4 then make sure you have installed php7.4 and elasticsearch in your server, for more detail about Magento 2.4 technology stack requirements please read official Magento article.

Before we start I assume, you already Magento source. If you don't have it then download Magento first and extract it on your server and move to the root of your Magento and run below

saveCopyzoom_out_map
php bin/magento setup:install --admin-firstname=Dev --admin-lastname=Hooks --admin-email=example@gmail.com --admin-user=admin --admin-password=admin@123 --base-url=http://domainname.com/ --db-host=localhost --db-name=magento24 --db-user=root --db-password=root --currency=USD --timezone=America/Chicago --language=en_US --use-rewrites=1

Note: Change all the parameter values with your values.

After Change all parameter values run above command and wait for some time to complete the installation process. Check Magento once it's done.

That's it!!

If you are a beginner and want to know more about Magento 2 Commands then check out our other article which is Useful Commands for Magento 2.

I hope this article helps you to find what you were looking for.

Bookmark it for your future reference. Do comment below if you have any other questions on that.

P.S. Do share this article with your team.




Recent Articles
Tags
Newsletter
Chrome Extension
Copyright © 2024 devhooks.in All rights reserved.
Ads OFF toggle_off
wifi_off