Install the CLI
The DotVVM Command-Line tool can be used for several purposes:
- To lint
*.dothtml,*.dotmaster, and*.dotcontrolfiles and reveal errors without having to run the application. - To add pages, master pages, or markup controls to the project.
- To generate REST API bindings.
In the future, we plan to add additional features, like generating Selenium page objects for DotHTML pages, and more.
Install the CLI tool
To install DotVVM CLI globally, run the following command in the terminal:
dotnet tool install -g DotVVM.CommandLine
Remove the DotNetCliToolReference
If you've been using ASP.NET Core with .NET Core 2.2 or lower, you'll probably have the following entry in the .csproj file:
<ItemGroup>
<DotNetCliToolReference Include="DotVVM.CommandLine" Version="2.0.0" />
</ItemGroup>
This can be safely removed, as the DotNetCliToolReference was deprecated, and installing command-line tools via dotnet tool install is now the preferred way.