Smilefounder / dotnet-serve

Simple command-line HTTP server for .NET Core

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dotnet-serve

AppVeyor build status

NuGet MyGet

A simple command-line HTTP server.

It launches a server in the current working directory and serves all files in it.

Installation

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

dotnet install tool --global dotnet-serve

Usage

dotnet serve [path] [options]

Arguments:
  path                    Base path to the server root. Defaults to the current directory.

Options:
  -p|--port <PORT>        Port to use [8080]. Use 0 for a dynamic port.
  -a|--address <ADDRESS>  Address to use [0.0.0.0]
  -o|--open-browser       Open a web browser when the server starts [false]
  -?|-h|--help            Show help information

About

Simple command-line HTTP server for .NET Core

License:Apache License 2.0


Languages

Language:C# 82.5%Language:PowerShell 14.0%Language:Batchfile 3.5%