Sitemap CLI
Rebuild command
This command is used to rebuild sitemaps based on provided associated arguments. If no arguments are provided, It will default to re-generation of Index sitemap.
Example Usage:
wp pmc-sitemaps rebuild --dry-run=false --sitemap-types=post --range-start=2023-04- Rebuilds Post sitemap starting from April 2023 to current month.
wp pmc-sitemaps rebuild --dry-run=false- Rebuilds only Index sitemap.
wp pmc-sitemaps rebuild --dry-run=false --sitemap-types=category- Rebuilds category sitemap.