Command line interface
Product URL key template
bin/magento mirasvit:seo:product-url-template
Generates URL keys for products according to the URL key template configuration of SEO-friendly URL settings in general configurations.
| Option | Description | 
|---|---|
| --apply | Applies product URL key template. | 
| --restore | Restores product URL key template using [product_name]. | 
| --dry-run | Simulates the applying (if used with --apply) or restoring (if used with --restore). | 
| --store-id=STORE-ID | Applies or restores product URL key only for a specific store. | 
| --product-id=PRODUCT-ID | Applies or restores product url key only for a specific product. | 
| --regenerate | Regenerates URLs in table url_rewrite (useful if database was corrupted). | 
| -h, --help | Displays help for the given command. If no command is given, displays help for the list command. | 
| -q, --quiet | Do not output any message. | 
| -V, --version | Displays this application version. | 
| --ansi | Forces ANSI output. | 
| --no-ansi | Disables ANSI ouptut. | 
| -n, --no-interaction | Do not ask any interactive question. | 
| -v|vv|vvv, --verbose | Increases the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug. | 
Sitemap
bin/magento mirasvit:seositemap:generate
Generates a sitemap.
| Option | Description | 
|---|---|
| --info | Provides an information message with the available sitemap generation command options. | 
| --all | Generates all available sitemaps. | 
| --sitemap_id | Generates individual sitemaps through their sitemap id. Id of the sitemap can be found in Admin panel -> Marketing -> Site map. | 
SEO AI helper
bin/magento mirasvit:seo-ai:fix-audit-meta
Generates SEO rewrites via SEO AI helper.
| Option | Description | 
|---|---|
| --limit | Sets the number of URLs (reported by SEO audit) to process in a single run. | 
| --time-limit | Sets the timeout in seconds for the execution of the command. | 
| --reset | Removes all SEO rewrtites generated by SEO AI helper. | 
Redirects
mirasvit:seo:trailing-slash
Applies options from the Trailing slash redirects configuration in SEO general settings -> Redirects.
| Option | Description | 
|---|---|
| --apply | Applies the trailing slash setting for all stores. | 
| --store-id=STORE-ID | Applies the trailing slash setting only for a specific store. |