Magento, Magento 2

How to Install Magento 2.4 using Command Line

How to Install Magento 2.4 using Command Line

In this tutorial, Today I will explain to how to install Magento 2.4 using Command Line. On 28th July, 2020, Magento 2.4 is released. After Magento 2.3.x there are many changes available in Magento 2.4 version. To run Magento 2.4, we must need to install PHP 7.4 version. Even, Elasticsearch also now available in catalog search engine option. So, for that elasticsearch also need to install to run Magento 2.4.

For download Magento 2.4 zip, you can download from here. Now, Query is that in Magento 2.4 we need to setup using command line.

You may also like this :

Let’s follow the below steps :

  1. Create folder and extract Magento zip file.
  2. Create Database for your Magento instance.
  3. Now, execute this below command from your Magento Root directory

    php bin/magento setup:install --base-url="http://127.0.0.1/m24/" --db-host="localhost" --db-name="m24" --db-user="root" --db-password="root" --admin-firstname="Rohan" --admin-lastname="Hapani" --admin-email="test@gmail.com" --admin-user="admin" --admin-password="admin123" --language="en_US" --currency="USD" --timezone="America/Chicago" --use-rewrites="1" --backend-frontname="admin" --elasticsearch-host=127.0.0.1

After execute this command, Magento 2.4 installation process will start. After complete, you can run your Magento 2.4 at frontend side.

Note : Your PHP version should be 7.4

That’s it !!!

I hope this blog is easy to understand about how to install Magento 2.4 using Command Line. In case, I missed anything or need to add some information, always feel free to leave a comment in this blog, I’ll get back with proper solution.

Stay Safe and Stay Connected !!

Tagged ,