I'm trying to write up a tutorial explaining how to install Magento 2 only via composer, and use that tutorial as an in to exploring how third party composer repositories work. Looking at the current Magento 2 development setup, there's a few pieces of information I'm missing and I hope the community can fill them in.

Specifically, the composer.json in the Magento 2 GitHub repository lists the Magento package name as magento/magento2ce. However, this package does not exist in packagist, nor does it exist in packages.magento.com.

This means I can't just do a

composer require magento/magento2ce

and have Magento 2 automatically install.

Is there a Magento 2 provided package end-users can use to install that latest stable version of Magento two without checking out the source from GitHub?

4 Answers 4


Things may change a bit before GA as we did things like supporting modules in 'vendor', and we have the "New Magento Connect" coming soon which includes a Composer repository. Just the perfect storm going on - trying to get everything landed together. But yes, there will be a single CE package you can depend on that will suck in CE. It will also include the patch level, so for people who want it simple, there will be a CE meta-package with patch level. To get CE patches, you just depend on the new patch level of the meta package, and you will get a combination of modules that has been run through all tests etc.

So it will be clean at GA, but is not quite there yet. Note that packages.magento.com is a placeholder until the "New Connect" - it will go away after we have the "real" site up. (And no, I cannot give you a release date, but it is Real Soon Now™.)


Right now you can install Magento from this package on the Packagist:

composer create-project --stability="alpha" magento/project-community-edition

This is 1.0.0-beta version of Magento, which is couple of months old. During the release the repository may change, stability will change, but composer create-project command is the way to install it.

  • This method is discussed in the documentation: bit.ly/1hhqBpf It will probably change at GA and if so, we'll update that page. Oct 23, 2015 at 13:04

To install Magento 2 via Composer, you have to visit here to get authentication keys. Click "My Access Keys" after logging in and generate new set of keys.

Enter the following command in terminal.

composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition

Public key is your username and private key is your password.

Now you can install Magento through setup wizard.

To install it with sample data, navigate to your Magento 2 root directory and run the commands below.

php bin/magento sampledata:deploy
php bin/magento setup:upgrade

These commands will update composer.json file.


You can install Magento 2 via composer, run the following command in the root directory to download it.

composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition .

Now run the following command to install Magento 2.

php bin/magento setup:install 
--admin-email="[email protected]" 

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.