Command-line Interface
Currently, there are four cli commands in KduPress: build, dev, eject and info.
If they are not enough for you, you can also create your own commands.
Usage
kdupress <command> [options]
Commands:
dev [targetDir] start development server
build [targetDir] build dir as static site
eject [targetDir] copy the default theme into .kdupress/theme for customization.
info Shows debugging information about the local environment
You can always add --help
flag for more information.
Commands
build
Build dir as a static site.
<port>
-p, --port See port.
<temp>
-t, --temp See temp.
[cache]
-c, --cache --no-cache
See cache.
<dest>
-d, --dest See dest.
--debug
Start development server in debug mode.
--silent
Start development server in silent mode.
dev
Start a development server. All options from kdupress build
are available. And there are several options specifically for dev:
<host>
--host See host.
--open
Open browser when ready.
--no-clear-screen
Do not clear screen when dev server is ready. Note that dev server will not clear screen if you start it in debug mode.
eject
Copy the default theme into .kdupress/theme
for customization.
info
Shows debugging information about the local environment.
more commands
You can create a custom command with extendCli.