serve
Static file serving and directory listing. tldr-pages
On several platforms
Several platforms
Start an HTTP server listening on the default port to serve the current directory
serveIdentifyStart an HTTP server on a specific port to serve a specific directory
serve -p port path/to/directoryIdentifyStart an HTTP server with CORS enabled by including the Access-Control-Allow-Origin: * header in all responses
serve --corsIdentifyStart an HTTP server on the default port rewriting all not-found requests to the index.html file
serve --singleIdentifyStart an HTTPS server on the default port using the specified certificate
serve --ssl-cert path/to/cert.pem --ssl-key path/to/key.pemIdentifyStart an HTTP server on the default port using a specific configuration file
serve --config path/to/serve.jsonIdentifyDisplay help
serve --helpIdentify