Skip to content
/ gserve Public

A CLI tool to create a simple HTTP file server

License

Notifications You must be signed in to change notification settings

ajthr/gserve

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Development Completed Contributions Welcome

Gserve

Gserve is a cli tool to create a simple, zero-configuration HTTP file server.

Usage:

gserve [flags]

Flags:

  • -d, --directory string - The directory to serve files from. (default: current folder)
  • -p, --port string - The port to serve files on. (default: 7777)
  • -v, --version - version for gserve
  • -h, --help - Display help message.

Examples:

To start a file server on the current directory on port 7777, run the following command:

gserve

To start a file server on a different directory, use the -d flag:

gserve -d /path/to/directory

To start a file server on a different port, use the -p flag:

gserve -p 8080