Command line interface
Blog MX provides a command line interface (CLI) for managing layout updates across all store views and active themes. This is especially useful when switching themes, customizing widget templates, or troubleshooting layout issues.
Available commands
1. Update blog layouts
bin/magento mirasvit:blog:update-layout
What it does: Updates all Blog MX widgets and layouts across active themes and store views. Use this after:
- Changing or customizing your Magento theme
- Modifying widget templates
- Enabling a new store view
2. Repair blog categories table
bin/magento mirasvit:blog:repair
What it does:
Repairs the mst_blog_category database table.
Use this command if you experience issues with category visibility or structure.
3. Recalculate SEO scores
bin/magento mirasvit:blog:recalculate [-m|--missing-only]
What it does: Queues a recalculation of the SEO score for blog posts. Use this after changing the score checker configuration (enabling/disabling metrics, adjusting importance or thresholds) so existing posts reflect the new settings.
| Option | Description |
|---|---|
| -m, --missing-only | Only queue posts that don't have a content score yet, instead of every post. |
This command only queues the recalculation. Make sure the consumer is running to actually process it: bin/magento queue:consumers:start mirasvit_blog_mx.content_score.update