Command Scheduler Magento2
tkotosz/command-scheduler-magento2
Schedules `bin/magento` commands to run via the Magento admin panel. Allows users to execute commands without direct server access.
Build Tests
Code Quality
Tested on Magento 2.4.8-p3
Recent Test History
Each release is tested against the latest Magento version at that time.
Share This Module's Status
README
Loaded from GitHubCommand Scheduler module for Magento 2
This module allows you to schedule bin/magento commands in the Magento admin. This makes it possible to run bin/magento command with only Magento admin access.
Usage:
- Configure the allowed commands: List of allowed commands can be configured in the di like this:
<type name="Tkotosz\CommandScheduler\Model\AllowedCommandsContainer">
<arguments>
<argument name="allowedCommands" xsi:type="array">
<item name="Cache Clean" xsi:type="string">cache:clean</item>
</argument>
</arguments>
</type>
-
Schedule any allowed command on the System > Tools > Schedule Commands admin page
-
Wait for the schedule processor to run: By default a cron runs every 5 minute to process the next pending schedule. (alternatively you can use the bin/magento command-scheduler:process-next-schedule command to trigger the schedule processing)
-
Check the result of the command execution on the System > Tools > Schedule Commands admin page by clicking on the "view result" link
This content is fetched directly from the module's GitHub repository. We are not the authors of this content and take no responsibility for its accuracy, completeness, or any consequences arising from its use.

