Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 768 Bytes

auth-json.md

File metadata and controls

22 lines (17 loc) · 768 Bytes

To create auth.json:

  1. Log in to your Magento server as, or switch to, the Magento file system owner.

  2. Edit or create auth.json in the user's home directory.

    The following example shows how to add repo.magento.com authentication to an existing file:

    {
       "github-oauth": {
         "github.com": "<your github oauth id>"
       },
       "http-basic": {
          "repo.magento.com": {
             "username": "<public key>",
             "password": "<private key>"
          }
       }
    }
    
    For example, if your user name is `magento_user`, create or edit `/home/magento_user/.composer/auth.json`