Command Line Interface
Usage: php -f bin/magento [options]
-
mirasvit:assistant:apply-rule
- Apply automation rule for products that match rule's conditions. This command has the following params:--id
- id of applied rule. This parametr is required.--entity-id
- allows you to specify only one entity id (e.g. product_id) that will be changed by the rule. This parameter is optional.--reset
- reset already applied rule so it can be re-applied again later. Will affect only rules with "Apply Only Once" => "Yes". This parameter can be combined with the parameter--entity-id
. Not applicable along with the--dry-run
parameter.--dry-run
- this is a flag which indicates that you would like to run the command without changing anything in database.--force
- forcibly apply rule (will terminate previous process for current rule if running).
Note
Examples:mirasvit:assistant:apply-rule --id 1
- applies the rule with ID 1 to all products that match conditions in the rulemirasvit:assistant:apply-rule --id 1 --entity_id 10
- applies the rule with ID 1 to the entity (e.g. product) with ID 10 ONLY if that product matches conditions of the rulemirasvit:assistant:apply-rule --id 1 --reset
- resets the rule with ID 1 ONLY if the rule's option "Apply Only Once" is set to "Yes"
mirasvit:assistant:reindex
- Reindexes the "automation rule - product" relations. This command has only one optional parameter --reset
which can be used to remove all data from the "automation rule - product" relations table