Live Chat Icon For mobile
Live Chat Icon

How to create a Blazor server-side application in a command-line interface (CLI).

Platform: Blazor| Category : Getting started, General

Follow these steps to create a Blazor Server application using a command-line interface (CLI).

  1. Create a Blazor Server App in CLI

    Open a command prompt where you want your project to be located and run the following command.

    dotnet new blazorserver -o BlazorServerApp

    blazorserver cli

  2. Navigate to Blazor Server App

    Run the cd BlazorServerApp command to navigate to the BlazorServerApp folder.

  3. Run the apllication.

    The dotnet run command runs the application. See the following output in the default browser.

    server-cli-output

Refer to this documentation for more details.

Share with

Share on twitter
Share on facebook
Share on linkedin

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.