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 Marketing -> Advanced SEO Suite -> Sitemap. |
bin/magento mirasvit:seositemap:validate
Validates already generated sitemap file(s) against a set of golden-output invariants (well-formed XML, and non-empty, absolute, and unique <loc> entries), reporting any violations. Exits with a non-zero status code if a violation is found, so it can be used as a fail-fast check in CI right after sitemap generation.
| Option | Description |
|---|---|
| --format=FORMAT | Sets the output format: text (default) or json. |
Filter SEO URLs
bin/magento mirasvit:seo-filter:rewrites
Manages SEO-friendly URL rewrites for layered navigation filter options.
| Option | Description |
|---|---|
| --generate | Generates rewrites for filterable attributes and their options. |
| --remove | Removes all existing filter rewrites. |
| --actualize | Removes filter rewrites that reference options, grouped options, or attributes that no longer exist or are no longer filterable. |
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. |
SEO audit
bin/magento mirasvit:seo-audit:job
Manages the SEO audit crawl job that checks store pages for SEO compliance.
| Option | Description |
|---|---|
| --start | Starts a new SEO audit job. Any previously running job is forcibly finished. |
| --run | Runs the current SEO audit job, crawling and checking URLs. Execution is time- and URL-limited; run this command repeatedly to process more URLs. |
| --stop | Finishes all currently running jobs. |
| --reset | Resets the SEO audit module tables to their fresh-install state, removing all checks and crawled URLs. |
| --limit=SECONDS | Sets the time limit (in seconds) for a single --run execution. Minimum 30 seconds, maximum 3600 seconds (1 hour). |
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. |