Quick Install

The quickest way to install a vanilla Magento 2 is to use Magerun.

1
magerun install

Magerun will ask for different configuration options in prompts, notably the version of Magento you wish to install. If the version you want to install is not listed, be sure to update Magerun.

1
magerun self-update

You will need to enter the database credentials and base url, Magerun will not ask for default store config (base currency, etc). At the end of the process, you have the option of installing the sample data.

If you run in to problems with the Magento repository, you will have to create the auth.json file in the root of the installation with the keys, see the auth.json.sample file for the structure required.

Afterwards, re-run composer install.

Applications

This method of installation makes it very easy to get a development copy of Magento running quickly, it is also the recommended way to set up multiple versions of Magento for the purpose of tracking down core bugs within Magento 2 and in comparison to a client project.

This means a bug in a project can be isolated to either being a Magento 2 core bug or a project/module issue.