0

Is it possible to trigger php bin/magento setup:upgrade from the backend? I need to give the company "Amasty" access to our project, so that they can debug a bug in their module, but I am not autorised to give them SSH access.

  • "Amasty" is a big brand. Ask your client for this, simple. no waste of time at all. Generate custom ssh with ppk file with allowing few commands only. That will also help you to resolve this. – Dinesh Rajput Feb 25 at 13:26
1

Not by default in Magento, although you can create your module module that reimplements the logic from the CLI command on a controller action. Or even just call the CLI command via reflection and with dummy interfaces.

The CLI command can be found at /Magento/Setup/Console/Command/UpgradeCommand.php

If you do run it by a controller, dependent on your server config, you may need to use message queues to avoid request timeouts. Also dont forget to implement ACL rules.

| improve this answer | |

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.