CmdID

CmdID / Commands

serve

Static file serving and directory listing. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Start an HTTP server listening on the default port to serve the current directory

Start an HTTP server on a specific port to serve a specific directory

serve -p port path/to/directoryIdentify

Start an HTTP server with CORS enabled by including the Access-Control-Allow-Origin: * header in all responses

serve --corsIdentify

Start an HTTP server on the default port rewriting all not-found requests to the index.html file

serve --singleIdentify

Start an HTTPS server on the default port using the specified certificate

serve --ssl-cert path/to/cert.pem --ssl-key path/to/key.pemIdentify

Start an HTTP server on the default port using a specific configuration file

serve --config path/to/serve.jsonIdentify

Display help

serve --helpIdentify