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 Admin panel -> Marketing -> Site map.

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.