|
3 | 3 | [](https://www.nuget.org/packages/NetCoreStack.Hisar.WebCli.Tools) |
4 | 4 |
|
5 | 5 |
|
6 | | -Hisar WebCLI provides modular component development without dependencies. |
| 6 | +Hisar WebCli provides modular component development without dependencies. |
7 | 7 | [NetCoreStack.Hisar](https://github.com/NetCoreStack/Hisar) supports any standalone MVC app that it can be part of |
8 | 8 | hosting application package as a component. Please check out NetCoreStack.Hisar on [Github]([NetCoreStack.Hisar](https://github.com/NetCoreStack/Hisar)) for more details. |
9 | 9 | Each component-module should know what layout.cshtml looks like and then this tool can manage it for you. |
10 | 10 | If you don't specify the main application directory it will create the default _Layout.cshtml page. |
11 | 11 |
|
12 | | -For example: |
13 | 12 |
|
14 | | - dotnet hisar --appdir the-full-path-of-your-main-app |
| 13 | +### Install |
| 14 | +Download the .NET Core SDK 2.1.0 or newer. Once installed, run this command: |
15 | 15 |
|
16 | | -or serve static files only |
| 16 | + dotnet tool install --global dotnet-hisar --version 2.1.1 |
17 | 17 |
|
18 | | - dotnet hisar --static <the-full-path-of-your-static-files> |
| 18 | +### Usage |
| 19 | + |
| 20 | + Usage: dotnet hisar [options] [[--] <arg>...] |
| 21 | + |
| 22 | + Options: |
| 23 | + -?|-h|--help Show help information |
| 24 | + -a|--appdir Main application directory |
| 25 | + -b|--build Component directory |
| 26 | + -c|--clean To clean NetCoreStackHisarWebCliTools temp directory and SQLite data which stores Layout.cshtml(s) |
| 27 | + -s|--static It launches a server in the current working directory and serves all files in it. |
| 28 | + -v|--verbose Show verbose output |
| 29 | + |
| 30 | + Remarks: |
| 31 | + Hisar WebCli provides modular component development environements. |
| 32 | + You can manage all the files you specified with --appdir option or serve static files with --static option. |
| 33 | + However, NetCoreStack.Hisar rely on this tool to templating and create appropriate component packages. |
| 34 | + If you don't specify the main application directory it will create a default simple _Layout.cshtml page. |
| 35 | + |
| 36 | + For example: dotnet hisar --appdir <the-full-path-of-your-main-app> |
| 37 | + dotnet hisar --static <the-full-path-of-your-static-files> |
| 38 | + dotnet hisar --build <the-component-project-directory> (MsBuild integrated) |
| 39 | + |
| 40 | + Examples: |
| 41 | + dotnet hisar |
| 42 | + dotnet hisar --appdir C:/users/codes/project/src/Hisar.Hosting |
| 43 | + dotnet hisar --static C:/users/codes/project/wwwroot |
| 44 | + dotnet hisar --build C:/users/codes/project/src/Hisar.Component.Carousel |
19 | 45 |
|
20 | 46 |  |
21 | 47 |
|
|
0 commit comments