Sitemap CLI
Deno CLI to create a sitemap from build output.
Usage
Usage: deno run https://deno.land/x/sitemap/cli.ts [args]
Deno CLI to generate a XML sitemap from a local directory.
Options:
-h, --help - Show this help.
-V, --version - Show the version number for this program.
-b, --basename <basename> - Base URL (required)
-r, --root <dir> - Root working directory (Default: ".")
-o, --out <outfile> - Output file, or - for standard out (Default: "sitemap.xml")
Works well together with
deno install
.
Contributions
All contributions are welcome!
Install Deno.
Formatting
deno fmt
Linting
deno lint
Typechecks
deno check *.ts
Credits
- https://github.com/zerodevx/static-sitemap-cli for inspiration.
- https://github.com/dcdunken for the initial implementation.