FileServer 1.0.1
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet tool install --global FileServer --version 1.0.1
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.1
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=FileServer&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package FileServer --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
File Server
A simple, command-line http server for loading static content. It can be used for local development and testing purposes.
Installation
FileServer is cross-platform and runs on .NET 5.
dotnet tool install -g FileServer
Usage
Simply navigate to a given directory from the command line and run file-server
. Then access it from the browser on http://localhost: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 <PORT>
It is possible to run multiple insances of file-server where each listens on a subsequent port unless a custom one is provided.
Installation from Source
git clone https://github.com/deniskyashif/file-server.git
cd file-server
- Run
dotnet pack
- Run
dotnet tool install --global --add-source .\nupkg\ FileServer
Product | Versions 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.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.