-
Notifications
You must be signed in to change notification settings - Fork 3
Command Line
To use LuaWebGen, navigate to your site's root folder and run this from the command line:
webgen command [options]or, in the universal version:
lua path/to/webgen.lua command [options]webgen build [options]
Build the website. Also look at the available build options.
webgen new page <pagePath>
Create a new page with some basic information. Example:
webgen new page "blog/first-post.md"webgen new site <folderName>
Initialize a folder to contain a new site. Example:
webgen new site "internet-dogs"
cd "internet-dogs"
webgen new page "blog/first-post.md"
webgen build--autobuild or -a
Auto-build website when changes are detected. This makes LuaWebGen run until you press Ctrl+C in the command prompt.
--drafts or -d
Include page drafts when building.
--force or -f
Force-update all. This makes LuaWebGen treat all previously outputted files as if they were modified. This has the same effect as deleting the output folder.
--verbose or -v
Enable verbose printing to the console.
- Home
- Command Line
- Site Configuration
- Embedding Lua
- Constants
- Functions
- Objects
- Other Modules and Information