pyssg is pre-1.0 and under active development - APIs, config, and themes may change.
pyssg.cli

1 min read

pyssg.cli

Command-line interface.

  • pyssg init scaffolds a new site for a preset (--preset docs|blog).
  • pyssg build runs a full build (--no-cache, --profile).
  • pyssg serve watches + incrementally rebuilds + serves with live reload.
  • pyssg clean removes the output dir and cache (with confirmation).
  • pyssg eject-layout copies a built-in theme into the site to customize it.

main(argv: list[str] | None = None) -> int