How to install magento in one command?

Install magic n98 magerun

wget http://files.magerun.net/n98-magerun-latest.phar -O n98-magerun.phar
chmod +x ./n98-magerun.phar
sudo cp ./n98-magerun.phar /usr/local/bin/n98

Download magento with composer

composer require magento-hackathon/magento-composer-installer ~3.0
composer require aydin-hassan/magento-core-composer-installer ~1.2
composer require firegento/magento ~1.9.2.2

Install magento

  • installs magento
  • imports sample data
  • creates local.xml
  • creaes admin user
n98 install --dbHost="127.0.0.1" --dbUser="dev" --dbPass="dev" --dbName="magento_dev" --installSampleData=yes --useDefaultConfigParams=yes --installationFolder="." --baseUrl="http://magento.dev/" --noDownload

Feel informed? I hope so.

Like this article? Share it on Facebook, Twitter, or Linkedin, send a smoke signal or even try some morse code.

I will be glad to answer your questions or get some feedback from you here in comments below.