Magento CLI Installer

You can use the mage-install utility to perform a completely automated Magento installation.

mage-install.sh Usage:

mage-install.sh -r [magento release] -l [hostname] -u [username] -p [password] -n [database name] ((-s) -e [email] -u [url])

  Required

    -r [0-9.]+      Magento release (eg. 1.9.0.1)
    -l hostname     Database server hostname (eg. db1.i)
    -u username     Database username
    -p password     Database password
    -n db name      Database name

  Optional

    -s              With sample data

    Auto install - To complete installer and create admin user

    -w url          Store URL (eg. www.example.com)
    -e email        Admin email (eg. info@example.com)

Examples

1.9.0.1 Download only - without installation, without sample data

To download Magento, without extracting files or installing it, simply run the script with the -d and -r flags.

cd /microcloud/domains/example/domains/example.com/http
wget -O mage-install.sh https://sys.sonassi.com/mage-install.sh
bash mage-install.sh -d -r 1.9.0.1

1.9.0.1 Download and install - without sample data

To download Magento, extract the files and complete the installation, first create a database on your server, then run the following. Adjust the store URL and email address to suit.

cd /microcloud/domains/example/domains/example.com/http
wget -O mage-install.sh https://sys.sonassi.com/mage-install.sh
bash mage-install.sh -r 1.9.0.1 -l db1.i -u demo -n demo -p password -w www.example.com -e info@example.com

1.9.0.1 Download and install, with sample data

To download Magento, extract the files, preload the Magento sample data and complete the installation, first create a database on your server, then run the following. Adjust the store URL and email address to suit.

cd /microcloud/domains/example/domains/example.com/http
wget -O mage-install.sh https://sys.sonassi.com/mage-install.sh
bash mage-install.sh -r 1.9.0.1 -l db1.i -u demo -n demo -p password -w www.example.com -e info@example.com -s