How we can install magento 2.2.0 via command line command(CLI) using Ubuntu ? Could you please some share command?
Hello @cam49449gmf696 ,
run below command :
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition=2.2.0
hope it helps !
To get the Magento metapackage:
Log in to your Magento server as, or switch to, the file system owner.
Change to the web server docroot directory or a directory that you have configured as a virtual host docroot.
Create a new Composer project using the Magento Open Source or Adobe Commerce metapackage.
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition=2.2.0 <install-directory-name>
Install Magento
You must use the command line to install Magento.
This example assumes that the Magento install directory is named magento2ee, the db-host is on the same machine (localhost), and that the db-name, db-user, and db-password are all magento:
bin/magento setup:install \ --base-url=http://localhost/magento2ee \ --db-host=localhost \ --db-name=magento \ --db-user=magento \ --db-password=magento \ --admin-firstname=admin \ --admin-lastname=admin \ --admin-email=admin@admin.com \ --admin-user=admin \ --admin-password=admin123 \ --language=en_US \ --currency=USD \ --timezone=America/Chicago \ --use-rewrites=1 \ --search-engine=elasticsearch7 \ --elasticsearch-host=es-host.example.com \ --elasticsearch-port=9200
For more details check https://devdocs.magento.com/guides/v2.4/install-gde/composer.html