https://github.com/integrii/serve
🕸 A robust and handy tool for serving your current terminal directory over HTTP
https://github.com/integrii/serve
cli current-directory go golang http server static-server
Last synced: 4 months ago
JSON representation
🕸 A robust and handy tool for serving your current terminal directory over HTTP
- Host: GitHub
- URL: https://github.com/integrii/serve
- Owner: integrii
- License: apache-2.0
- Created: 2017-09-09T08:18:21.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2025-09-23T07:24:10.000Z (4 months ago)
- Last Synced: 2025-09-23T09:20:19.142Z (4 months ago)
- Topics: cli, current-directory, go, golang, http, server, static-server
- Language: Go
- Homepage:
- Size: 1.51 MB
- Stars: 12
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# serve ⚡️
A simple binary written in go for serving your current directory as static content over HTTP from the terminal. Just run `go install github.com/integrii/serve@latest` and use.
Free, open source, fast, and simple.

# Installation
- [Have go installed](https://golang.org) _(duh?)_
- Install with go: `go install github.com/integrii/serve@latest`
- If your `$PATH` environment variable has `$GOBIN` in it, then you can now simply use `serve`
- Otherwise, you will need to run `$GOBIN/serve` or if you don't even have `$GOBIN` set, you must run `$GOPATH/bin/serve`
# Usage
- Run `serve`.
- See results at [http://127.0.0.1:8000](http://127.0.0.1:8000)
- Hit `Control-C` to stop the server gracefully
# Options
Run `serve --help` to see command line options:
```
Usage of serve:
-l string
The address for the server to listen on. Examples: :80, 127.0.0.1:8000 (default ":8000")
-p string
The path for the server to serve. (default "/Current/directory")
```