Command-line tool
http-server
brew/http-server
Checked 25 Oct 2026, 21:11 UTC · Still published on npm
Simple zero-configuration command-line HTTP server cli command static http https http-server https-server server
At a glance
- Type
- Command-line tool
- Install on
- Windows, macOS, Linux
- Last checked
- 25 Oct 2026, 21:11 UTC
Install it
Windows
npm install -g http-server
macOS
brew install http-server npm install -g http-server
Linux
npm install -g http-server
Start an HTTP server listening on the default port to serve the current directory
http-server
Start an HTTP server on a specific port to serve a specific directory
http-server path/to/directory -p port
Start an HTTP server using basic authentication
http-server --username username --password password
Related command-line tools
- sfz
A simple static file serving command-line tool. - http-server-rs
Simple and configurable command-line HTTP server - bartib
Simple timetracker for the command-line - pet
Simple command-line snippet manager - basic-http-server
A simple static HTTP file server, for learning and local development - istioctl
Istio configuration command-line utility - proxyconf
Windows proxy configuration from the command line. - eatmemory
Simple program to allocate memory from the command-line
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents