IMPORTANT: This project is archived, we are no longer supporting this .NET Core tool.
⭐ 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.
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
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 ./
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
$ embedio-cli -p c:\wwwroot
$ embedio-cli --api mywebapi.dll
$ embedio-cli -p c:\wwwroot --api mywebapi.dll
Short Argument | Long Argument | Description | Default | Required |
---|---|---|---|---|
p | path | The path where files will be serve | ./ | ❌ |
o | port | The port where the app will be listening | 9696 | ❌ |
a | api | The path to the dll | ./ | ❌ |
no-watch | Disables the watch mode | false | ❌ |