Create and serve
zola init <dir>
Create a site, asking setup questions
zola init
Populate the current directory
zola init --force
Init in a non-empty directory
Existing files and folders are never overwritten.
zola serve
Build and serve with live reload
Serves at 127.0.0.1:1111 by default.
zola serve --drafts
Include draft pages
zola serve --open
Open the site in a browser
zola serve --port <port>
Change the port
zola serve --interface 0.0.0.0
Reach it from other devices
zola serve --base-url <url>
Set base URL independently
zola serve --debounce <ms>
Delay between change and rebuild
Default 1000 ms; 0 is not supported.
zola serve --output-dir <dir>
Write served files elsewhere
Needs --force if the directory exists.
Build and check
zola build
Render the site into public/
Deletes the output directory first.
zola build --base-url <url>
Override base_url from the config
zola build --output-dir <dir>
Write to another directory
zola build --force
Skip the replace prompt
zola build --drafts
Include drafts in the build
zola check
Build without output, check links
zola check --skip-external-links
Only check internal links
zola check --drafts
Check drafts as well
zola --root <path> build
Run on a project elsewhere
zola --config <file> build
Use a different config file
zola --help
List commands and flags
zola <cmd> --help
Help for one subcommand
Front matter
title = "<text>"
Page or section title
date = 2026-01-31
Page date, unquoted
draft = true
Hide unless --drafts is used
slug = "<slug>"
Replace the filename in the URL
path = "<path>"
Set full output path
Overrides slug and filename; no leading slash.
weight = <n>
Order when sort_by is weight
template = "<file>.html"
Pick another template
[taxonomies]
e.g. tags = ["rust"]
sort_by = "date"
Sort section pages (section)
paginate_by = <n>
Pages per page of a section
page_template = "<file>.html"
Template for pages in a section
transparent = true
Pass pages up to parent section
redirect_to = "<url>"
Redirect a section
aliases = ["<old-path>"]
Redirect old URLs here
extra.<key> = ...
Own data for templates