Back to Top

Magento 2 Contribution Install

Updated 5 May 2023

Follow the steps below to clone Magento2 official git branch.

STEP 1: Clone the Magento repository

You can clone the latest code from the Magento GitHub repository

git clone https://github.com/magento/magento2.git

STEP 2: Create an authentication file

  1. Create an auth.json file in your Magento root directory.
  2. Copy the contents of the sample auth.json file into the new auth.json file.
  3. Replace <public-key> and <private-key> with your Adobe Commerce authentication credentials. Add the github-oauth section and replace the <personal-access-token> with the one you created for your GitHub account.

https://docs.github.com/en/[email protected]/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token

{
    "http-basic": {
        "repo.magento.com": {
            "username": "<public-key>",
            "password": "<private-key>"
        }
    },
    "github-oauth": {
        "github.com": "<personal-access-token>"
    }
}

STEP 3: Install composer dependencies by running the below command.

composer install

Hope this helps, Thanks 🙂

Searching for an experienced
Magento 2 Company ?
Find out More
. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

Back to Top

Message Sent!

If you have more details or questions, you can reply to the received confirmation email.

Back to Home