AptLynx

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

Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents