@@ -44,19 +44,20 @@ so that you can pipe it to do other cool stuff. CLI also allows you to pipe in B
4444
4545### Options
4646
47- | Option | Long | Description |
48- | --------| --------------| -----------------------------------------------------------------|
49- | -h | --help | show CLI help |
50- | -V | --version | show CLI version |
51- | -r | --root | [ default: current dir] root directory to start from |
52- | -m | --match | [ default: ** /* .html,!404.html] list of globs to match |
53- | -p | --priority | glob-priority pair (eg: foo/* .html=0.1) |
54- | -f | --changefreq | glob-changefreq pair (eg: foo/* .html=daily) |
55- | -n | --no-clean | disable clean URLs |
56- | -l | --slash | add trailing slash to all URLs |
57- | -t | --text | output as .TXT instead |
58- | -s | --save | save output directly to file ` <root>/sitemap.xml ` |
59- | -v | --verbose | be more verbose |
47+ | Option | Long | Description |
48+ | --------| --------------| ----------------------------------------------------------------------------------------|
49+ | -h | --help | show CLI help |
50+ | -V | --version | show CLI version |
51+ | -r | --root | [ default: current dir] root directory to start from |
52+ | -m | --match | [ default: ** /* .html,!404.html] list of globs to match |
53+ | -p | --priority | glob-priority pair (eg: foo/* .html=0.1) |
54+ | -f | --changefreq | glob-changefreq pair (eg: foo/* .html=daily) |
55+ | -n | --no-clean | disable clean URLs |
56+ | -l | --slash | add trailing slash to all URLs |
57+ | -t | --text | output as .TXT instead |
58+ | -s | --save | save output to XML and TXT files directly |
59+ | -o | --output-dir | specify the output dir; used together with --save; defaults to root working directory |
60+ | -v | --verbose | be more verbose |
6061
6162
6263#### Clean URLs
@@ -141,6 +142,10 @@ so every pages' default is 0.5. To change the *relative* priority of certain pag
141142
142143` echo https://example.com | sscli > sm.xml `
143144
145+ #### Save XML and TXT files into a specified location directly
146+
147+ ` sscli https://example.com -r 'src' -s -o 'dist' `
148+
144149
145150
146151## To-do
@@ -177,6 +182,10 @@ Is this important? Not really - most of the time; but if you're using [Google AM
177182
178183## Changelog
179184
185+ ** v1.3.0** - 2020-01-10:
186+ * ` --save ` now outputs BOTH sitemap.xml and sitemap.txt formats.
187+ * Update dependencies.
188+
180189** v1.2.0** - 2019-09-26:
181190* Always add trailing slash to root urls. (ref: [ implementation notes] ( #to-slash-or-not-to-slash ) )
182191
0 commit comments