dotnet-serve 0.3.0

A simple command-line HTTP server.

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global dotnet-serve --version 0.3.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 dotnet-serve --version 0.3.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=dotnet-serve&version=0.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package dotnet-serve --version 0.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Installation

The latest release of dotnet-serve requires the 2.1.300-preview2 .NET Core SDK or newer. Once installed, run this command:

dotnet tool install --global dotnet-serve

Usage

Usage: dotnet serve [options]

Options:
  --version                          Show version information
  -?|-h|--help                       Show help information
  -d|--directory <DIRECTORY>         The root directory to serve. [Current directory]
  -o|--open-browser                  Open a web browser when the server starts. [false]
  -p|--port <PORT>                   Port to use [8080]. Use 0 for a dynamic port.
  -a|--address <ADDRESS>             Address to use [127.0.0.1]
  --path-base <PATH>                 The base URL path of postpended to the site url.
  --default-extensions:<EXTENSIONS>  A comma-delimited list of extensions to use when no extension is provided in the URL. [.html,.htm]
  -q|--quiet                         Show less console output.
  -v|--verbose                       Show more console output.
  --razor                            Enable Razor Pages support (Experimental)

Installation

The latest release of dotnet-serve requires the 2.1.300-preview2 .NET Core SDK or newer. Once installed, run this command:

dotnet tool install --global dotnet-serve

Usage

Usage: dotnet serve [options]

Options:
  --version                          Show version information
  -?|-h|--help                       Show help information
  -d|--directory <DIRECTORY>         The root directory to serve. [Current directory]
  -o|--open-browser                  Open a web browser when the server starts. [false]
  -p|--port <PORT>                   Port to use [8080]. Use 0 for a dynamic port.
  -a|--address <ADDRESS>             Address to use [127.0.0.1]
  --path-base <PATH>                 The base URL path of postpended to the site url.
  --default-extensions:<EXTENSIONS>  A comma-delimited list of extensions to use when no extension is provided in the URL. [.html,.htm]
  -q|--quiet                         Show less console output.
  -v|--verbose                       Show more console output.
  --razor                            Enable Razor Pages support (Experimental)

Release Notes

See https://github.com/natemcmaster/dotnet-serve/blob/master/CHANGELOG.md#v030 for release notes.

  • .NETCoreApp 2.1

    • No dependencies.

Version History

Version Downloads Last updated
1.8.34 3,931 3/4/2021
1.8.31 78 3/4/2021
1.8.26 91 3/4/2021
1.8.25 86 3/4/2021
1.8.15 13,412 1/31/2021
1.7.141 1,788 12/3/2020
1.7.140 116 12/3/2020
1.7.139 3,097 11/6/2020
1.7.138 219 11/6/2020
1.7.137 930 10/1/2020
1.7.136 644 9/5/2020
1.7.135 241 9/2/2020
1.7.134 227 9/2/2020
1.7.133 253 8/30/2020
1.7.132 1,151 7/17/2020
1.7.131 641 6/28/2020
1.7.130 196 6/28/2020
1.7.125 199,837 5/2/2020
1.7.124 361 4/25/2020
1.7.123 190 4/25/2020
1.7.122 682 4/11/2020
1.7.121 364 4/11/2020
1.7.120 1,023 3/15/2020
1.7.119 535 2/29/2020
1.7.116 501 2/11/2020
1.6.0 9,083 12/4/2019
1.5.0 89,759 10/22/2019
1.4.1 827 9/21/2019
1.4.0 258 9/20/2019
1.3.0 637 8/29/2019
1.2.0 2,972 2/25/2019
1.1.0 1,707 10/18/2018
1.0.0 1,876 5/30/2018
0.4.1 658 5/11/2018
0.4.0 578 5/11/2018
0.3.0 672 4/11/2018
0.2.1 649 3/28/2018
0.2.0 662 3/12/2018
0.1.0 779 12/13/2017
Show less