Sitemap Generator
🕹 Sitemaps Creation and Validation
# Simple generation usage:
npx seo-master create sitemap -w https://www.nayanui.com
# Advanced generation Usage:
npx seo-master create sitemap --website https://www.nayanui.com --depth 10 --changefreq daily --output ./sitemap.xml
You can also use the shorter version of this command.
npx seo-master create sitemap -w https://www.nayanui.com -d 10 -f daily -o ./sitemap.xml
You can also integrate Sitemaper with your localhost
npx seo-master create sitemap -w http://localhost:3000 -r https://www.nayanui.com -d 10 -f daily -o ./sitemap.xml
this case it crawl your localhost URL and replace it with replacement URL.
# Attributes
Name | Attribute | Type | Default | Details |
---|---|---|---|---|
Website URL | --website / -w | string | The URL of the website to crawl. | |
Replacement Website | --replacer / -r | string | The URL of the website to be replaced. This will be mostly useful to crawl localhost and replace it with original URL. | |
Crawling depth | --depth / -d | number | 10 | Depth of the website to crawl. |
Change frequency | --changefreq / -f | string | daily | Change frequency for the sitemap. Possible options are: always, hourly, daily, weekly, monthly, yearly, never. |
Output | --output / -o | string | ./sitemap.xml | Output path for the sitemap.xml. |
# Sitemap validation usage:
Validate your sitemap both local and through URL.
npx seo-master validate sitemap --input ./sitemap.xml
You can also use the shorter version of this command.
npx seo-master validate sitemap -i ./sitemap.xml
You can also validate sitemap.xml of your live website by passing URL.
npx seo-master validate sitemap --input https://www.nayanui.com/sitemap.xml --isremote true
# Attributes
Name | Attribute | Type | Default | Details |
---|---|---|---|---|
Input sitemap | --input / -i | string | ./sitemap.xml | Input path for the sitemap.xml. |
Is Remote | --isremote / -ir | boolean | false | Pass true if sitemap is hosted somewhere. |
# Tags