fugo
The command line
Usage#
fugo [OPTIONS]
fugo <COMMAND>Commands#
fugo build- Builds the site into the publish directory (the default command)
fugo server- Builds the site into memory, serves it with live reload, and rebuilds it when files change (Go’s development server; environment
developmentby default) fugo templates- Template tooling
fugo config- Prints the resolved configuration
fugo cms- Content editor (
[cms]) tooling fugo version- Prints the version
Options#
-b,--base-url <URL>- The site’s base URL
-t,--theme <THEMES>- Themes to use (comma-separated)
--cache-dir <DIR>- The cache directory
--ignore-cache[=BOOL]- Ignores the cache directory
-D,--build-drafts[=BOOL]- Includes content marked as draft
-E,--build-expired[=BOOL]- Includes expired content
-F,--build-future[=BOOL]- Includes content with a publish date in the future
--clean-destination-dir[=BOOL]- Removes files from the publish directory that the static directories do not have
--no-times[=BOOL]- Does not copy the static files’ modification times (config
noTimes) --no-chmod[=BOOL]- Does not copy the static files’ permissions (config
noChmod) --minify[=BOOL]- Minifies the supported output formats
--threads <N>- The render thread count (default:
RAYON_NUM_THREADS, else the CPUs). The output does not depend on it
Global options#
Every command takes these.
-s,--source <DIR>- The project directory (default: the working directory)
--config <FILE>- The configuration file, relative to the source. Default: the project’s
config.toml,config.yaml,config.ymlorconfig.json -e,--environment <ENV>- The build environment (default
production,developmentforserver): picks the configuration’s[environments.<environment>]table and the.env.<environment>file --themes-dir <DIR>- The themes directory
--clock <TIME>- The build’s “now” (RFC 3339, e.g.
2026-09-27T12:00:00Z), for dates andnow() -d,--destination <DIR>- The publish directory, relative to the source
-M,--render-to-memory- Renders into memory only (a dry run: nothing is written; what
serverdoes by default) -q,--quiet- Prints only warnings and errors