{"repo":"natemcmaster/dotnet-serve","free":true,"listed":false,"github":"https://github.com/natemcmaster/dotnet-serve","clone":"git clone https://github.com/natemcmaster/dotnet-serve.git","description":"Simple command-line HTTPS server for the .NET Core CLI","language":"C#","stars":878,"topics":["dotnet","dotnet-core","command-line-tool","webserver"],"license":"Apache-2.0","category":"cli-tools","readme_excerpt":"dotnet-serve ============ [![Build Status][ci-badge]][ci] [![Code Coverage][codecov-badge]][codecov] [![NuGet][nuget-badge] ![NuGet Downloads][nuget-download-badge]][nuget] [ci]: https://github.com/natemcmaster/dotnet-serve/actions?query=workflow%3ACI+branch%3Amain [ci-badge]: https://github.com/natemcmaster/dotnet-serve/workflows/CI/badge.svg [codecov]: https://codecov.io/gh/natemcmaster/dotnet-serve [codecov-badge]: https://codecov.io/gh/natemcmaster/dotnet-serve/branch/main/graph/badge.svg?token=l6uSsHZ8nA [nuget]: https://www.nuget.org/packages/dotnet-serve/ [nuget-badge]: https://img.shields.io/nuget/v/dotnet-serve.svg?style=flat-square [nuget-download-badge]: https://img.shields.io/nuget/dt/dotnet-serve?style=flat-square A simple command-line HTTP server. It launches a server in the current working directory and serves all files from that directory. Get started Install .NET and run this command: Start a simple server and open the browser by running: And with HTTPS: With a specific port (otherwise, it defaults to a random unused port): Allow access from remote machines (defaults to loopback only). Use this if running inside Docker: Usage Tip: single letters for options can be combined. Example: dotnet serve -Sozq Configuring HTTPS dotnet serve -S will serve requests over HTTPS. By default, it will attempt to find an appropriate certificate on the machine. By default, dotnet serve will look for, in order: - A pair of files named cert.pem and private.key in the current dir","default_branch":null,"files":null,"tree":[],"storefront":"/r/natemcmaster","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/natemcmaster/dotnet-serve/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}