All apps/serve

serve

serve

Static file serving and directory listing.

Runs as serve|macOS, Linux, Windows

Autocomplete

Fig spec, with what the manifest adds · 16 options
Published once and never changed; check the digest before caching
sha256
cadb47a0ef1bd75ee5935934d61723f394d2ff69ed19b93c3f74eedb47d1106a
Size
3158 bytes
OptionsOn serve itself
-h--help
Shows help message
-v--version
Displays the current version of serve
-l--listen
Specify a URI endpoint on which to listen - more than one may be specified to listen in multiple places <listen_uri>
-p
Specify custom port <port>
-d--debug
Show debugging information
-s--single
Rewrite all not-found requests to `index.html`
-c--config
Specify custom path to `serve.json` <path to config file>
-C--cors
Enable CORS, sets `Access-Control-Allow-Origin` to `*`
-n--no-clipboard
Do not copy the local address to the clipboard
-u--no-compression
Do not compress files
--no-etag
Send `Last-Modified` header instead of `ETag`
-S--symlinks
Resolve symlinks instead of showing 404 errors
--ssl-cert
Optional path to an SSL/TLS certificate to serve with HTTPS <path to SSL/TLS certificate>
--ssl-key
Optional path to the SSL/TLS certificate's private key <path to private key>
--ssl-pass
Optional path to the SSL/TLS certificate's passphrase <path to passphrase>
--no-port-switching
Do not open a port other than the one specified when it's taken
ArgumentsPositional, in order
<location>
· folders