• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Maurisource Web Agency

Maurisource Web Agency

Magento Architect and Development

  • Services
  • Magento ® 2 Integrations
  • Magento ® Articles
  • Contact

Add Magento (Enterprise) Commerce edition Repo to Magerun2

February 9, 2021 by Manesh Sonah Leave a Comment

netz98 / n98-magerun2 is one crucial Swiss Knife tool I use for deploying Magento 2 quickly on my Mac Pro, alongside weprovide / valet-plus
Out of the box the CLI Magerun2 tool supports Community Edition, but it’s rather a simple task to load up the Enterprise Edition version as well during install command.

Step. 1. Add your Magento Repository <public_key> and <secret_key> to your global composer file.

Here’s the official guide to help you find your Authentication Keys:
https://devdocs.magento.com/guides/v2.4/install-gde/prereq/connect-auth.html

This is done with a command like this in Terminal:

composer.phar global config http-basic.repo.magento.com <public_key> <private_key>

Step. 2. We need to add a config file for Magerun2, in which we specify the Magento Enterprise version we want to pull from the Repo.
Watch out for the YAML file indentation. I suggest opening the file in Xcode to make sure you have the proper structure.

Save the file at this location: ~/.n98-magerun2.yaml

commands:
  N98\Magento\Command\Installer\InstallCommand:
    magento-packages:
      - name: magento-ee-2.4.1
        package: magento/project-enterprise-edition
        version: 2.4.1
        options:
          prefer-dist: true
          stability: alpha
          repository-url: https://repo.magento.com

installation:
      pre-check:
        php:
          extensions:
            - pdo_mysql
            - spl
            - dom
            - simplexml
            - hash
            - curl
            - iconv
            - ctype
            - gd
            - xsl
            - openssl
            - intl
            - mbstring
            - zip

Afterwards you can run Magerun2 install command to have the requested package show up in the list of choices like so in [10] position.

  [1 ] magento-ce-2.4.1 
  [2 ] magento-ce-2.4.0 
  [3 ] magento-ce-2.3.5-p2 
  [4 ] magento-ce-2.3.5 
  [5 ] magento-ce-2.3.4 
  [6 ] magento-ce-2.3.3 
  [7 ] magento-ce-2.3.2 
  [8 ] magento-ce-2.3.1 
  [9 ] magento-ce-2.3.0 
  [10] magento-ee-2.4.1 

Filed Under: Development tips, Magento 2 Tagged With: cli tool, deployment tool Magento, Magento Enterprise Repo, magerun2

About Manesh Sonah

When I'm not looking for solutions in the eCommerce industry: I enjoy traveling, photography, water-sports and gaming.

Primary Sidebar

Pick a certified team that got your back while your eCommerce requirements grow.

Who am I ?

When I'm not looking for solutions in the eCommerce industry: I enjoy traveling, photography, water-sports and gaming. About me...

Locally made in Canada

Agence Web - Magento

MONTREAL / QUEBEC / MTL

  • Services
  • Magento ® 2 Integrations
  • Magento ® Articles
  • Contact