Skip to main content
All docs
V25.2
  • Create a Blazor Web App from CLI

    Run the following command to create a blank Blazor project named BlazorWebApp in the current directory. The project includes a DevExpress Blazor Chart that visualizes a sample dataset.

    dotnet new dx.blazor -n BlazorWebApp --add-views Chart
    

    To build and to run the created project, use the following commands:

    cd BlazorWebApp
    dotnet run
    

    The console prints a local URL (for example, Now listening on: http://localhost:5000). Open the URL in a browser to view the app.

    Blazor Web App

    To automatically apply code changes and restart the application as soon as files are saved, use the dotnet watch command:

    dotnet watch
    

    What’s Next

    Refer to the following help topic for a complete list of command line parameters: Command Line Parameters.