Lunet is a static site generator that builds a website from a folder containing a config.scriban file. This guide walks you through installation, creating your first site, and running it locally.
Lunet requires the .NET 10 SDK (or later). If you don't have it yet, download it from:
https://dotnet.microsoft.com/en-us/download/dotnet/10.0
Lunet is distributed as a .NET global tool:
dotnet tool install -g lunet
Verify the installation:
lunet --help
Create a new site using the built-in skeleton:
lunet init mysite
cd mysite
The skeleton uses the default Lunet template and creates:
config.scriban — site configuration that extends lunet-io/templates with project metadatareadme.md — a sample home pagemenu.yml — top-level navigation (Home + Docs)docs/readme.md — a starter documentation pagedocs/menu.yml — sidebar navigation for the docs sectionThe template provides layouts, includes, CSS/JS assets, a theme switcher, and search — your site is fully functional out of the box. See the template readme for all configuration options.
Build once:
lunet build
The output is written to .lunet/build/www/ by default. Open index.html in a browser to see the result.
For a production build, Lunet sets site.environment = "prod". To build in development mode:
lunet build --dev
For development, use the built-in server:
lunet serve
This starts a local web server at http://localhost:4000 with:
site.environment is set to "dev", so production-only features (like analytics) are disabled.baseurl and basepath are overridden to point to localhost.Create Markdown files with YAML front matter to add pages:
---
title: "About"
---
# About this site
This is a Markdown page that will be converted to HTML.
Files with front matter are treated as pages and processed through the layout pipeline. Files without front matter (images, CSS, JS) are copied to the output as-is.
See Content & front matter for details on front matter formats and page variables.
config.scriban) — understand how the config file works as executable Scriban code and how it differs from page templates.