httpme is a simple command-line HTTP server that serves files from a specified directory.
It can automatically select an available port or use a port defined by the user.
-port: Specify the port to listen on (default: random available port).-address: Specify the address to bind to (default: localhost).-path: Specify the directory path to serve (default: current directory).-tls: Enable TLS (default: false).-cert: Specify the TLS certificate file (default: none).-key: Specify the TLS key file (default: none).-help: Display help message.-version: Display version information.
- Serve the current directory on a random free port on localhost:
httpme - Serve files from /path/to/directory on http://0.0.0.0:8080/
httpme -port=8080 -address=0.0.0.0 -path=/path/to/directory- Serve files from /path/to/directory on https://
httpme -tls -cert /path/to/cert.pem -key /path/to/key.pem -path /path/to/directoryTo install httpme, use the following command:
go install github.com/delta9000/httpme/cmd/httpme@latestBSD 3-Clause License