Skip to content

Composer access key

When you work locally with your source code you need access to our modules. You will get that access through Composer.

Composer requires an access key. This can be generated in the Console, by opening Credentials in the main menu on the left, and pressing the + button near the top right corner of the page. Specify the intended usage, and select the access key type in the dropdown menu, then press Save.

Make note of the username and password generated for you, then close the dialog box.

Note

The credentials will only be shown once, and cannot be altered. Make sure to store them in a safe location.

Saving credentials locally

On Linux or Mac, you can store the credentials in ~/.composer/auth.json in the following format:

{
    "http-basic": {
        "composer.elastycloud.io": {
            "username": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
            "password": "yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy"
        },
        "repo.magento.com": {
            "username": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
            "password": "yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy"
        }
    }
}