LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

sfz

Simple static file server for local development

TLDR

Serve the current directory on the default port
$ sfz
copy
Serve a path on a port
$ sfz -p [8080] [path]
copy
Enable CORS / address bind (see help)
$ sfz --help
copy

SYNOPSIS

sfz [*options*] [*path*]

DESCRIPTION

sfz (Static File Zerver) is a small Rust CLI that serves a directory over HTTP—useful for quick local previews. Note: the original author has indicated limited maintenance; consider alternatives on crates.io for long-term projects.

PARAMETERS

*path*

Directory to serve (default: current directory).
-p, --port *port*
Listen port.
Additional flags control address, CORS, and cache headers—sfz --help.

INSTALL

nix profile install nixpkgs#sfz
copy

CAVEATS

Not hardened for public Internet exposure. Project maintenance status is limited. Prefer caddy/nginx for production.

SEE ALSO

python(1), caddy(1), miniserve(1)

RESOURCES

Copied to clipboard
Kai