1.2 KiB
1.2 KiB
title = "Usage"
Usage
kewt --help
kewt --version
kewt --new [title]
kewt --post [title]
kewt --generate-template [path]
kewt --update [dir]
kewt --from <src> --to <out>
kewt [src] [out]
kewt --watch
kewt --serve [port]
--new [title]creates a new site directory with a defaultsite.conf,template.html, andindex.md.--post [title]creates a new markdown file in the configuredposts_dirwith the current date/time as the filename and default frontmatter.--generate-template [path]writes the defaulttemplate.htmlto the given path (defaults totemplate.htmlin the current directory).--update [dir]adds any missing keys tosite.confand checkstemplate.htmlagainst the latest default.--watch(-w) watches for file changes in the source directory and rebuilds automatically.--cleancleans the output directory before building (default behavior).--no-cleandoes not clean the output directory before building. Useful with--watchto avoid clearing output on every rebuild.--serve(-s) starts a local HTTP server (python3 or busybox) in the output directory after building. Use with the port number to specify the port. Composable with--watch.