Git Product home page Git Product logo

embedio-cli's Introduction

Analytics Build status Build Status

EmbedIO

EmbedIO CLI

⭐ 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 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

embedio-cli's People

Contributors

geoperez avatar israelramosm avatar jpalcala avatar dependabot-preview[bot] avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.