-
Notifications
You must be signed in to change notification settings - Fork 229
Description
Feature description
We propose a new install command that replaces the current one, offering the ability to install all existing versions of Magento, Mage-OS, and Adobe Commerce by specifying a version. The new command should not rely on predefined configurations, making it more flexible and adaptable for future releases of these platforms. This approach eliminates the need for deploying a new version of n98-magerun2 for each new release of Magento, Mage-OS, or Adobe Commerce, streamlining the installation process.
The new command should allow users to define the version they wish to install, and it should automatically pull the appropriate dependencies and configuration for that version.
Examples:
# Install a specific version of Magento with sample data
n98-magerun2 install magento --version 2.4.6 --sample-data
# Install a specific version of Mage-OS with sample data
n98-magerun2 install mage-os --version 1.1.0 --sample-data
# Install a specific version of Adobe Commerce with sample data
n98-magerun2 install adobe-commerce --version 2.4.5-p1 --sample-data
# Install the latest version of Magento with sample data
n98-magerun2 install magento --latest --sample-data
# Install the latest version of Mage-OS with sample data
n98-magerun2 install mage-os --latest --sample-data
# Install the latest version of Adobe Commerce with sample data
n98-magerun2 install adobe-commerce --latest --sample-data
# Install a development version of Magento with sample data
n98-magerun2 install magento --version 2.5.0-dev --sample-data
# Install Magento from a Git tag with sample data
n98-magerun2 install magento --version v2.4.6 --sample-dataWe also need a way to handle Opensearch installation and the configuration of all service parameters.
Problem and motivation
Currently, every time a new version of Magento, Mage-OS, or Adobe Commerce is released, n98-magerun2 needs to be updated to support the new release. This can be time-consuming and inefficient, especially when working with multiple versions. A more generic, version-based installation command would simplify the process and allow users to install any version without needing to wait for updates to n98-magerun2. This would benefit other users by providing greater flexibility and saving time in environments where multiple versions are required.