The following CLI Commands are available with the Klevu Magento 2 extension. You can find out what each one does by using the `--help` option. Below is a summary of what each one does for your reference.
Command | Description |
---|---|
php bin/magento klevu:syncdata | Send your Magento Products, Categories and CMS Pages to Klevu for all stores. Options are available to send all entities or only those modified since the last data sync. This command will also send any Orders placed since the last sync. |
php bin/magento klevu:syncstore:storecode store1,store2 | Send to Klevu any Products, Categories and CMS Pages which have been modified since the last data sync. This command will send data for the specified stores only, which must all belong to the same website. |
php bin/magento klevu:images | Klevu maintains its own copy of your product images in the `pub/media/klevu_images` directory. Sometimes these images can become out of sync and you can use this command to recreate them. Options are available to regenerate all images or only missing ones. Please follow this with a data sync using the syncdata or syncstore command. |
php bin/magento klevu:rating | Klevu maintains a product attribute `rating` with the average rating per product for each store. Sometimes these ratings can become out of sync. Use this command to recalculate the ratings for each product. Please follow this with a data sync using the syncdata or syncstore command. |
php bin/magento klevu:sync:category | Send your Magento Categories only to Klevu for all stores. Options are available to send all entities or only those modified since the last data sync. |
php bin/magento klevu:sync:cmspages | Send your Magento CMS Pages only to Klevu for all stores. Options are available to send all entities or only those modified since the last data sync. |
php bin/magento klevu:syncorder | Send order records that have not yet been synced with Klevu for all enabled stores. To send specific store view order data, need to pass stores e.g. (for store codes default and new_store) php bin/magento klevu:syncorder --store default --store new_store |