DevExpress Templates (CLI)

  • 3 minutes to read

Ensure your system meets these requirements.

This topic describes how to:

1. Install DevExpress Templates

Download the DevExpress.Blazor.ProjectTemplates NuGet package and install it.

dotnet new -i DevExpress.Blazor.ProjectTemplates

After the installation is completed, the following DevExpress project templates are available:

Template list

2. Obtain Your DevExpress NuGet Feed

You need to obtain your personal NuGet feed URL to access the DevExpress.Blazor NuGet package from your project.

  1. Make sure your account has access to Blazor UI Components. This product line is available as part of the Universal, DXperience, or ASP.NET subscription. Refer to the subscription comparison matrix for more information.

  2. Use your DevExpress credentials to log into

  3. Obtain your NuGet feed URL and copy it to the clipboard.

    NuGet Feed

    You can find the same URL in the Download Manager.

3. Register the NuGet Feed as a Package Source

Add the feed as a package source to your NuGet configuration files.

dotnet nuget add source{your-feed-url}/api -n DevExpress

An error can occur if the specified source is already added to the source list, but it is disabled. Run dotnet nuget list source to view all the configured sources. To enable the source, run dotnet nuget enable source.


Make sure the package source is also enabled.

4. Create a New Project

Create and open a project folder:

mkdir my-blazor-project
cd my-blazor-project

Run one of the following commands to create a project:

  • DevExpress Blazor Server App:

    dotnet new dxblazorserver -n MyBlazorServerProject
  • DevExpress Blazor WebAssembly App

    dotnet new dxblazorwasm -n MyBlazorWasmProject
  • DevExpress Blazor Hosted WebAssembly App

    dotnet new dxblazorwasmhosted -n MyBlazorWasmHostedProject

The newly created project references the DevExpress.Blazor NuGet package. NuGet automatically restores this package if you registered the DevExpress NuGet feed.


You can also pass the NuGet feed as a -nf parameter when you create a project.

dotnet new dxblazorserver -n MyBlazorServerProject -nf{your-feed-url}/api

The command creates the project and adds the NuGet.config file with the DevExpress feed to the project folder.

5. Run the Application

Run a Server or WebAssembly application:

dotnet run

Run a hosted WebAssembly application:

cd App.Server
dotnet run

The project starts listening on https://localhost:5000. Open it in the browser.

Run the application

6. Add More DevExpress Components

For instructions on how to add an individual DevExpress Blazor component to your application, refer to the documents below: