Command Line Interface
Below are the available commands for the eChat module.
Command to sync store data
bin/magento mirasvit:echat:sync
The command syncs your store data (store information, products, categories, CMS pages and Mirasvit Knowledge Base articles) to the eChat cloud knowledge base. The chatbot uses this data to provide accurate answers to customer questions.
| Option | Description |
|---|---|
| --type | Sync only one data source. Built-in values: store_info, product, category, cms_page, kb_article, plus the identifier of any custom data source. If omitted, all sources are synced. |
| --store | Sync only the given store view, by code. If omitted, every store view with the chatbot enabled is synced. |
| --dry-run | List what each source would send, without contacting the knowledge base. Nothing is created or updated. |
| --limit | Stop after this many documents per source. Useful together with --dry-run on a large catalog. 0 (the default) means no limit. |
Examples
-
Sync all data types:
bin/magento mirasvit:echat:sync -
Sync only products:
bin/magento mirasvit:echat:sync --type=product -
Sync only CMS pages:
bin/magento mirasvit:echat:sync --type=cms_page -
Preview the first five products of one store view without sending anything:
bin/magento mirasvit:echat:sync --store=default --type=product --dry-run --limit=5