How to install Magento 2 via Commnad line interface(CLI)?

In Magento 2, We can install Magento with different techniques. Like, Via Command Line, Using the Websetup wizard.

For installation with CLI, you just need to run below command, from your Magento instance path,

Before installation through CLI, You just need to set the following commands in the order shown to set permission:

cd /var/www/html/{Magento_Package}

Now run the command below,

base-url is your URL of Magento 2 site
db-host is your hostname of database
db-name is your database name
db-user is your database username
db-password is your database password
admin-firstname is your admin user firstname
admin-lastname is your admin user lastname
admin-email is your email id of admin user
admin-user is your username for adminpanel
admin-password is your password for adminpanel
currency is your currency value like, USD,GBP,INR
language is your language like en_US,en_GB,nl_NL
timezone is your timezone of sites like America/Chicago or any.

Leave a Reply

Your email address will not be published. Required fields are marked *