Install
Installation instructions for Litium accelerator.
Follow the steps below to install the latest version of the Accelerator. Please see the release notes for the latest version here.
Before you start
Before Litium Accelerator is installed you need to set up the Litium NuGet feed.
Also, set up Elasticsearch, Redis, and Kibana. Please see the setup instructions here.
Use a version control system for easy upgrades of Litium Accelerator.
Install the template package
The Accelerator template package is a pre-created package.
Installation of the template package is only needed the first time the version is created.
Only one version of the template package can exist at the same time.
- Open Powershell command prompt
- Install the template pack with
dotnet new install "Litium.Accelerator.Templates"
After the template is installed, a list of available templates is shown
Note: To update the template to a later version, you should run the installation command again.
If you want to install a specific version of the template you need to append the version number to the template name separated by two colons (::) example for template for the 8.0.0 version
dotnet new install "Litium.Accelerator.Templates::8.0.0"
Install and run Litium Accelerator
- Open the Powershell command prompt in the folder where the Accelerator should be installed.
- Install the Litium Accelerator with the following ​command.
dotnet new litmvcacc
To include the Storefront API in the accelerator installation you need to add the --storefront-api to the commando
dotnet new litmvcacc --storefront-api

During the creation of Litium Accelerator, the restore of projects and installation of litium-db tool are performed.
If the installation is performed without errors, continue to step 3.
Manually restore the project's dependencies
dotnet tool restore
dotnet restore
Manually install litium-db tool
dotnet new tool-manifest
dotnet tool install Litium.Application.Migrations
Please find more information about database management and how to install specific versions of the db-tool here.
- Setup the database with help of the litium-db tool. Using the command (Note! A empty database must exist before the command can run)
dotnet litium-db update --connection "Pooling=true;User Id=user;Password=secret;Database=litium8;Server=127.0.0.1;TrustServerCertificate=True"
Remember to replace the settings in the connectionstring for your database.
-
Config your Litium Accelerator installation.
See .Net configuration, where you should put common non secret settings for the project (appSettings.json, appSettings.Development.json, and appSettings.Production.json), user-secrets should be used for development configuration and local secrets.
Optional: Build the client project (only if you are modifying client resource files)
The Litium Accelerator comes with pre-built client resource files, so you do not have to build them yourself.
However, if you have modified client resources under any project, then you need to build the project. Here is how to do it:
- Make sure that you have NPM and Yarn installed and in the path.
- Execute BuildClientProjects.bat file.
Note:
- If you are building Litium.Accelerator.FieldTypes, the output folder is Litium.Accelerator.FieldTypes\dist. Build the Litium.Accelerator.FieldTypes.csproj after building client resources to embed the script in the assembly.
- If you are building Litium.Accelerator.Mvc, the output folder is Litium.Accelerator.Mvc\UI. If you update only js, scss or cshtml files, then you do not need to build Litium.Accelerator.Mvc.csproj. Note that you still need to build client resources when you update js files.
- If you are building Litium.Accelerator.Email, the output folder is Litium.Accelerator.Email\dist. By default, ConfirmationEmail.html is copied to Litium.Accelerator.Mvc\Views\Email and renamed with .cshtml as extension. In case you want to automatically copy more files when building the project, modify gulpfile.babel.js file to add more files to be copied in the copy function.
Create your accelerator website
- In Visual Studio, go to Solution Explorer and select the Litium.Accelerator.Mvc project. Context-click and select Set as StartUp project.
- Start the accelerator with the Start without debugging option in the Debug menu. This will open a web browser with the port number. Type "litium" after the port number to display the login page for the Litium back office.
- Log in as a user with System All permissions. Please read more about how to log in here.
Example "https://localhost:5001/litium"
- Open the settings by clicking the cogwheel in the upper right corner. In the left panel, expand the node Deployment where you will find the accelerator.

- Click on the accelerator to install.
- Enter a name and a domain name for the Accelerator website.

- Click the Import button and wait for a message confirming that the installation was successful. Note that an active internet connection is needed to download the installation package.
Your accelerator website has now been created.
This means that the following items are also created:
- A folder in Media for the Accelerator media files.
- An assortment for the Accelerator categories and products.
- A price list.
- An inventory.
- The default B2B buyer roles Order approver and Buyer.
Secure connection (SSL)
Every page should use a secure connection. By setting the HSTS (Http Strict Transport Security) for the domain name, we force the website to use HTTPS instead of HTTP. To configure HSTS, navigate to Settings > Globalization > Domain names, select a domain name, click Edit and then choose to edit HSTS max age to a value greater than 0.
From Qualys it is advisable to assign the max-age directive’s value to be greater than 10368000 seconds (120 days) and ideally to 31536000 (one year). Websites should aim to ramp up the max-age value to ensure heightened security for a long duration for the current domain and/or subdomains.