Skip to main content

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.

OptionDescription
--applyApplies product URL key template.
--restoreRestores product URL key template using [product_name].
--dry-runSimulates the applying (if used with --apply) or restoring (if used with --restore).
--store-id=STORE-IDApplies or restores product URL key only for a specific store.
--product-id=PRODUCT-IDApplies or restores product url key only for a specific product.
--regenerateRegenerates URLs in table url_rewrite (useful if database was corrupted).
-h, --helpDisplays help for the given command. If no command is given, displays help for the list command.
-q, --quietDo not output any message.
-V, --versionDisplays this application version.
--ansiForces ANSI output.
--no-ansiDisables ANSI ouptut.
-n, --no-interactionDo not ask any interactive question.
-v|vv|vvv, --verboseIncreases 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.

OptionDescription
--infoProvides an information message with the available sitemap generation command options.
--allGenerates all available sitemaps.
--sitemap_idGenerates 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.

OptionDescription
--format=FORMATSets 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.

OptionDescription
--generateGenerates rewrites for filterable attributes and their options.
--removeRemoves all existing filter rewrites.
--actualizeRemoves 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.

OptionDescription
--limitSets the number of URLs (reported by SEO audit) to process in a single run.
--time-limitSets the timeout in seconds for the execution of the command.
--resetRemoves 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.

OptionDescription
--startStarts a new SEO audit job. Any previously running job is forcibly finished.
--runRuns the current SEO audit job, crawling and checking URLs. Execution is time- and URL-limited; run this command repeatedly to process more URLs.
--stopFinishes all currently running jobs.
--resetResets the SEO audit module tables to their fresh-install state, removing all checks and crawled URLs.
--limit=SECONDSSets 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.

OptionDescription
--applyApplies the trailing slash setting for all stores.
--store-id=STORE-IDApplies the trailing slash setting only for a specific store.