Skip to content

Reinstall Magento

Maksym Zaporozhets edited this page Jun 14, 2023 · 1 revision

magento:reinstall

Reinstall Magento packed inside the Docker container.

Description

Run this command from the Magento root directory to reinstall the Magento application. This is especially useful for testing modules. Magento will not be configured to use Redis. Other configurations match the magento:setup command.

Only the running Magento instance can be reinstalled.

Usage

php "${DOCKERIZER_PROJECTS_ROOT_DIR}dockerizer_for_php/bin/dockerizer" magento:reinstall

Command arguments

  • collection-filter (optional): Filter compositions collection, choose only from compositions containing this string. Select composition automatically if only one option is available.

How it works

The command will run the Magento setup:install command and configure Magento in the same way as the magento:setup command. This command uses the same functionality.

All custom code and other files stay untouched. The database is dropped and recreated. Configuration changes are reverted. This is perfectly suitable for testing modules.

@TODO: Get composition(s) running in the current directory instead of iterating through all compositions.

Called from other commands

Clone this wiki locally