https://github.com/marcobeierer/sitemapgenerator-cli
A command line interface for my XML sitemap generator written in Go (golang).
https://github.com/marcobeierer/sitemapgenerator-cli
cli command-line-tool go golang sitemap sitemap-generator xml xml-sitemap xml-sitemap-generator
Last synced: 6 months ago
JSON representation
A command line interface for my XML sitemap generator written in Go (golang).
- Host: GitHub
- URL: https://github.com/marcobeierer/sitemapgenerator-cli
- Owner: marcobeierer
- Created: 2015-12-28T21:50:06.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2025-12-13T01:07:08.000Z (7 months ago)
- Last Synced: 2025-12-14T15:51:43.296Z (7 months ago)
- Topics: cli, command-line-tool, go, golang, sitemap, sitemap-generator, xml, xml-sitemap, xml-sitemap-generator
- Language: Go
- Homepage: https://www.marcobeierer.com/tools/sitemap-generator
- Size: 43.2 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sitemap Generator CLI
A command line interface for my XML Sitemap Generator written in Go (golang).
## Installation
### From Source
go get -u github.com/marcobeierer/sitemapgenerator-cli
cd $GOPATH/github.com/marcobeierer/sitemapgenerator-cli
go install
### Precompiled
You can find precompiled binaries for 64 bit Linux, MacOS and Windows systems in the `bin` folder of this repository.
## Usage
sitemapgenerator [flags] url
The sitemap is written to the standard output. It is thus possible to redirect the output directly to a file.
### Supported Flags
- tokenpath
- Path to the token file
- max\_fetchers
- Number of the maximal concurrent connections.
- reference\_count\_threshold
- With the reference count threshold you can define that images and videos that are embedded on more than the selected number of HTML pages are excluded from the sitemap.
- enable\_index\_file
- Enable generation of a sitemap index file, recommended for large websites.
- max\_request\_retries
- Number of retries for each failed request
- request\_retry\_timeout
- Timeout in seconds after a failed request
- sleep\_time
- Seconds between each update request
### Example
sitemapgenerator run -tokenpath token.txt https://www.marcobeierer.com > sitemap.xml
## Online Sitemap Generator
The sitemap generator is also available as online tool on [my website](https://www.marcobeierer.com/tools/sitemap-generator).