serve

command module
v0.0.0-...-6ae5a6d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2026 License: 0BSD Imports: 6 Imported by: 0

README

serve

A simple HTTP server for serving a directory.

Installation

You can build it from source using Go:

go install codeberg.org/noclaps/serve@latest

Usage

Usage: serve [options] [directory]

Arguments:
  directory
        The directory to serve. (default pwd)

Options:
  -port uint
    	The port to serve at. (default 3000)

You can use the tool simply by running:

serve dist # or whatever path to the directory you want to serve

This will serve the dist/ directory at http://localhost:3000.

You can also customise the port it serves at using the -port option:

serve static -port 4321

This will serve the static/ directory at http://localhost:4321.

You can view the help by using -help or -h:

serve -h
serve -help

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL