serve <command>
Static file serving and directory listing
Arguments
Name | Description |
---|
command | folders |
Options
Name | Description |
---|
-h,--help | Shows help message |
-v,--version | Displays the current version of serve |
-l,--listen <command> | Specify a URI endpoint on which to listen - more than one may be specified to listen in multiple places |
-p <command> | Specify custom port |
-d,--debug | Show debugging information |
-s,--single | Rewrite all not-found requests to `index.html` |
-c,--config <command> | Specify custom path to `serve.json` |
-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 <command> | Optional path to an SSL/TLS certificate to serve with HTTPS |
--ssl-key <command> | Optional path to the SSL/TLS certificate's private key |
--ssl-pass <command> | Optional path to the SSL/TLS certificate's passphrase |
--no-port-switching | Do not open a port other than the one specified when it's taken |