0

I am reading through the Magento guide and understand the steps. However it appears to me that many -if not all - of the steps are the same everytime.

https://devdocs.magento.com/guides/v2.3/comp-mgr/install-extensions.html

Step 1. get package dependency composer require module/magento2

When it’s finished you can activate the extension, clean the caches and deploy the content in your Magento® environment using the following command line;

Step 2. Enable php bin/magento module:enable Real_Modulename --clear-static-content

(it is unclear if --clear-static-content is really necessary or necessary in this step)

Step 3. Register the extension: php bin/magento setup:upgrade

Step 4. If in compilation mode, re-compile bin/magento setup:di:compile

Step 5. Clean the cache, the beloved necessary step in M1: php bin/magento cache:clean

Step 6. If Magento® is running in production mode, deploy the static content: php bin/magento setup:static-content:deploy

My question: Suppose we want to do this ALL in 1 go. Maybe via a script or so then the problem arises between step 1 and step 2 where we are downloading a composer package using the label module/magento2 and need a different label to enable module for example Real_Modulename

How can we grab the name Real_Modulename after step 1 if we want to create a script to do all this in 1 go?

thanks

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.