Command Line Interface
Below are the available commands for the Customer Segmentation Suite module.
Base command
bin/magento mirasvit:customer-segment
Base command of the extension. Requires one of the arguments below.
Display all segments
bin/magento mirasvit:customer-segment:info
This command will check all available segments and display them.
Refresh data for the specified segment
bin/magento mirasvit:customer-segment:refresh
This command refresh data for the specified segment and has the following arguments:
Argument | Description |
---|---|
2 | refresh the segment with ID 2 . |
note
To show the progress of the command execution, use the default option: -v
Export customers to a file
bin/magento mirasvit:customer-segment:export [option] <id> <filename>
This command export customers from specified segment to a CSV
file:
Argument | Description |
---|---|
4 | segment ID 4 |
customers.csv | filename customers.csv |
Usage example for the command:
mirasvit:customer-segment:export -v 4 customers.csv