Command-line tool
serve
brew/serve
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
Static http server anywhere you need one
At a glance
- Type
- Command-line tool
- Install on
- Windows, macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
Windows
scoop install serve
macOS
brew install serve
Linux
brew install serve
Start an HTTP server listening on the default port to serve the current directory
serve
Start an HTTP server on a specific [p]ort to serve a specific directory
serve -p port path/to/directory
Start an HTTP server with CORS enabled by including the `Access-Control-Allow-Origin: *` header in all responses
serve -C
Related command-line tools
- http-server
Simple zero-configuration command-line HTTP server cli command static http https http-server https-server server - http-server-rs
Simple and configurable command-line HTTP server - miniserve
High performance static file server file share 共享 分享 文件 server 服务器 发送 send transfer 传输 - static-web-apps-cli
SWA CLI serves as a local development tool for Azure Static Web Apps - gatsby-cli
Gatsby command-line interface - gatsby
Blazing fast modern site generator for React blog generator jekyll markdown react ssg website - zola
Fast static site generator in a single binary with everything built-in documentation content-management-system… - webfs
HTTP server for purely static content
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents