Skip to content

Reference

CLI reference

The mavis serve command, flags, output, and shutdown behavior.

mavis serve <directory>

Serve one documentation directory. The directory argument is required and may be . for the current directory. The former serv spelling is not an alias.

FlagPurposeDefault
--hostTCP hostname or address127.0.0.1
--portTCP port3344
--socketUnix-socket path instead of TCPnone
--excludeRoot-relative wildcard exclusion; repeat or combine with file rulesnone
--include-hiddenInclude dotfiles and dot directories unless excludedfalse

Explicit CLI scalar values override corresponding .mavis.conf settings for one run. Use --include-hidden=false to disable hidden content configured by the file. Exclusions from the CLI and file are combined. Configuring a socket together with an explicitly supplied host or port is an error.

Startup output and errors

Mavis prints the absolute content root and URL or socket path after the listener starts. It does not launch a browser. Invalid roots, malformed configuration, listener conflicts, and unavailable ports produce actionable errors and a nonzero exit status.

Binding to a non-loopback address displays a warning that anyone with network access may read the served files. Mavis does not require authentication.

Shutdown

Press Ctrl+C for graceful shutdown. Mavis releases its TCP listener or removes the Unix socket it owns.

Edit this page on GitHub Last updated