Beamtic's logo

Share via:

Solution to: Authentication required (

To install magento using composer, you will first need to generate a public and private key pair from the magento marketplace.


Edited: 2020-09-16 12:00

Warning from You haven't provided your Magento authentication keys. For instructions, visit
Authentication required (

When we attempt to install magento for the first time, we will be prompted to enter a username and password; if we dig around a bit more, we will learn that this is actually not what people would intuitively expect a username and password to be — instead, this actually refers to a public and private key pair that you must first generate.

Before you can install magento using composer, you first need to generate this key pair; to do that, complete the following steps:

  1. Create an account at, and agree for them to send you marketing e-mails (spam?).
  2. Validate your e-mail address. Note that you might not get the first validation e-mail, so you may need to request a second one!
  3. Login on
  4. Create a new access key. This generates a public and a private key; the public key is your username, and the private key is your password.

After doing this, simply enter the command from terminal to install magento:

composer create-project --repository-url= magento/project-community-edition /path/to/install/directory

Read this official guide to learn how to obtain your keys: