FileServer 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global FileServer --version 1.0.0
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local FileServer --version 1.0.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=FileServer&version=1.0.0
nuke :add-package FileServer --version 1.0.0

File Server

A command-line http server for loading static content. It can be used for local development, testing, and production purposes.

Usage

Simply navigate to a given directory from the command line and run file-server. Then access it from the browser on localhost:8080, 8080 being the default port number.

To run file-server on a custom port, provide --port or -p as an argument. For example file-server --port 1313 will launch the server on port 1313.

You can also run multiple insances on file-server where each listens on a subsequent port unless a custom one is provided.

Development

FileServer runs on .NET 5

Install from Source

  1. Navigate to the project folder from the command line cd path\to\file-server
  2. Run dotnet pack
  3. Run dotnet tool install --global --add-source .\nupkg\ FileServer
Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
1.2.1 449 8/17/2022
1.2.0 361 8/17/2022
1.1.0 370 2/2/2021
1.0.1 491 12/19/2020
1.0.0 386 12/18/2020