Home

Awesome

Analytics Build status Build Status

EmbedIO

EmbedIO CLI

IMPORTANT: This project is archived, we are no longer supporting this .NET Core tool.

:star: Please star this project if you find it useful!

A dotnet global tool that enables start any web folder or EmbedIO assembly (WebAPI or WebSocket) from command line.

Installation

We are using the brand new implementation of the Global Tool in .NET Core Apps 2.1+. Now you can easily download the package by running the next command

dotnet tool install -g embedio-cli

Custom installation

If you download the project and want to test installing your own version of the project you need to pack and then install the nuget

// In the root of your project run
$ dotnet pack

// Run the following command where you nupkg was created
$ dotnet tool install -g embedio-cli --add-source ./

Usage

Default serve

Run the command to serve a static folder and watch the files in the current directory. The command will serve a web page if it finds an index.html file or a wwwroot folder, otherwise it will serve the files to navigate them in the web browser.

$ embedio-cli

By default, all the files inside the folder are been watched and if any change happens on them it will reload the page, you can disable this functionality by passing --no-watch

Specify folder

$ embedio-cli -p c:\wwwroot

Run WebAPI or WebSocket Assembly

$ embedio-cli --api mywebapi.dll

Run web folder with WebAPI or WebSocket Assembly

$ embedio-cli -p c:\wwwroot --api mywebapi.dll

Arguments

Short ArgumentLong ArgumentDescriptionDefaultRequired
ppathThe path where files will be serve./:x:
oportThe port where the app will be listening9696:x:
aapiThe path to the dll./:x:
no-watchDisables the watch modefalse:x: