Table of Contents

Install using .NET CLI

How to install DynamicWeb 10 using .NET CLI.

This article is a step-by-step guide to install a DynamicWeb 10 solution using .NET CLI. To do so, you use our project templates package to create a ready-to-run project for you to work with.

Install the project templates package

  1. Install the latest .NET 7.0 SDK

  2. Open PowerShell and install the latest version of the templates package (Project templates on Nuget):

     dotnet new install Dynamicweb.ProjectTemplates
  3. After this package has been installed, you can get a list of all installed project templates on your computer:

     dotnet new --list dw

All DynamicWeb 10 project templates are named Dynamicweb 10 - {name}. Currently, we supply the following project templates:

Template name Short name Language Tags
Dynamicweb 10 - CMS dw10-cms C# Dynamicweb/CMS
Dynamicweb 10 - Suite dw10-suite C# Dynamicweb/CMS/Ecommerce/PIM

This dw10-suite template is the full setup of DynamicWeb and includes all the functionality

  • Content
  • Assets
  • Users
  • Commerce
  • Products

You'll need to use this template if your project requires both Content, Commerce and PIM.

The dw10-cms template contains only the features of necessary for running a Content website on DynamicWeb.

  • Content
  • Assets
  • Users

Creating a DynamicWeb project

Now that you have installed the dotnet new templates, you can use these to create a DynamicWeb project that can run directly from inside Visual Studio.

To create a project using the newly installed templates, you need to use this command

dotnet new {template name}

This means that if you want to use the DynamicWeb 10 - Suite template, you should to enter:

dotnet new dw10-suite

This command will create a new DynamicWeb project, which contains everything you need to get up and running. So now you basically just need to open the project in your favorite IDE or continue using the .NET CLI.

Running DynamicWeb

If you open it in the IDE (e.g Visual Studio) you can simply open the project, press F5 or click Run to build the project, and launch the site. The site will be accessible as long as your IDE is running.

If you prefer to run your DynamicWeb project using the .NET CLI, then you need to navigate to the folder containing the csproj file, and enter this command

dotnet run

In the output of the terminal, you should be able to see which url your solution is running at, and be able to access that through your browser. If you want to provide a specific URL, you can do it like this:

dotnet run --urls=http://localhost:5001/

No matter if you are using an IDE or .NET CLI to run your DynamicWeb project, you will be taken to the Setup Guide the first time you access the site, which will guide you through setting up the Files-folder and the database.

To top