---
title: "Step 4: Deploy Core Services with CLI – v6 to v7 Migration"
description: "Step 4 of the Nodinite v6 to v7 migration: validate, dry-run, and deploy the Core Services package with Nodinite.Installer.Cli.exe from an elevated PowerShell 7 prompt."
---

# :fa-forward-step: Step 4: Deploy Core Services with CLI

Deploy the :Nodinite: 7 [Core Services][] with `Nodinite.Installer.Cli.exe` from the bundle you downloaded in [Step 3][Step03]. The CLI creates one [IIS][] web site per Core Service, upgrades the existing v6 [Configuration Database][ConfigDB] in place, and leaves the v6 installation running until you remove it in [Step 9][Step09]. The general CLI reference is [Step 7: Run the CLI Workflow (Elevated PowerShell 7)][InstallPackage]; this page covers the migration specifics.

## Prerequisites

* [ ] [Step 3 completed – CLI bundle downloaded and extracted][Step03]
* [ ] [Pickup Log Events Service][Pickup Service] stopped and disabled
* [ ] Latest [PowerShell 7][]<sup>:fa-arrow-up-right-from-square:</sup>, run as administrator
* [ ] [IIS Windows Features][] installed, then the latest [.NET 10.0 Hosting Bundle](https://aka.ms/dotnet/10.0/dotnet-hosting-win.exe)<sup>:fa-arrow-up-right-from-square:</sup>, required by every Core Service web site
* [ ] [DacFX][]<sup>:fa-arrow-up-right-from-square:</sup> installed on the target server
* [ ] Service accounts with the [Logon as a Service right][Logon as a Service], DCOM Local Activation for the [Monitoring Service][Monitoring Service Rights], and a configured [MSDTC][]
* [ ] Current user is sysadmin on the [SQL Server][Microsoft SQL Server] instance; see [SQL Server Sysadmin Requirements][] for the rationale and post-install rights reduction

## Steps

### 1. Stop the Pickup Service

If you use it, stop and disable the :Nodinite: [Pickup Log Events Service][Pickup Service]:

* Open Services (`services.msc`)
* Find **Nodinite Pickup Log Events Service**
* Right-click → Stop
* Right-click → Properties → Startup type: **Disabled**

### 2. Open PowerShell 7 as Administrator

* Start Menu → Search **PowerShell 7** → Right-click → **Run as administrator**

### 3. Navigate to the Extracted Bundle

The ZIP is named `<EnvironmentName>-upgrade-core-environment.zip`. Go to the root of the extracted bundle:

```powershell
cd C:\Temp\DEV-upgrade-core-environment
```

*(Replace `DEV` with your environment name.)*

The bundle root contains `Nodinite.Installer.Cli.exe`, the `InstallationMedia` folder, `config.cli.json` (the generated configuration that the CLI consumes), and `README.txt`, which shows **Mode: Upgrade from Nodinite 6** and the recommended workflow. This package holds the Core Services only, so you run `install`, not `deploy-environment`; the agents follow in [Step 7][Step07].

### 4. Review the Bundle Before Running

* Review `config.cli.json` for paths, ports, and service account names.
* Verify the `SqlPackage.exe` path for your server.
* Keep the extracted folder structure intact so media paths resolve.

```powershell
.\Nodinite.Installer.Cli.exe --help
.\Nodinite.Installer.Cli.exe install --help
```

### 5. Validate the Package

Validation changes nothing on the machine. The CLI prompts for service account passwords that aren't stored in the configuration.

```powershell
.\Nodinite.Installer.Cli.exe validate --config .\config.cli.json
```

![CLI validation prompting for the service account password][1]  
*Example of CLI validation of the Core Services package: one service account runs the [Web Client][], [Web API][], [Log API][], [Logging Service][], [Monitoring Service][], and MCP Server, and the CLI asks for its password.*  

>[!WARNING]
>Fix every error reported during validation before you continue. Errors are shown in red.

![CLI validation errors][2]  
*Example of CLI validation errors; resolve all of them before you run install.*  

### 6. Run a Dry-Run

```powershell
.\Nodinite.Installer.Cli.exe install --config ".\config.cli.json" --dry-run
```

### 7. Deploy Core Services

Deploy when validation and the dry-run are clean:

```powershell
.\Nodinite.Installer.Cli.exe install --config ".\config.cli.json"
```

>[!NOTE]
>If the Configuration Database has no verified backup state, the CLI asks you to back up now, continue, or abort before it applies schema changes; see [Config DB backup confirmation prompt][Backup Prompt].
>
>During the upgrade, the CLI also asks you to acknowledge that it stops the :Nodinite: 6 Logging and Monitoring services. Run this step at the console: with `--non-interactive`, the run aborts at that prompt.

>[!IMPORTANT]
>If IIS-hosted v7 services run as **custom domain accounts**, validate [Service Principal Names (SPN)][SPN] before the first Windows-authenticated sign-in. Missing HTTP SPNs for the [Web Client][] and [Web API][] are the most visible failures; missing SQL Server SPNs can break backend connections.

![CLI Core Services deployment success][3]  
*Example of a successful Core Services deployment. The CLI lists the next migration steps: verify the environment, then return to the Portal to import the [Monitoring Agents][Monitoring].*  

### 8. Verify

Open the [Web Client][] at `http://<server name>:<Web Client port>`, using the port from the Portal [Servers step][V7 Servers], and sign in. HTTPS follows in [Step 10][Step10]. If the browser can't connect, check the [Network and Firewall Overview][Firewall].

## Completion Checklist

* [ ] Pickup Service stopped and disabled
* [ ] Validation passed without errors
* [ ] Dry-run output reviewed
* [ ] `install` completed without errors
* [ ] Web Client reachable, and you can sign in
* [ ] Configuration Database upgraded to the v7 schema

## Troubleshooting

### "Access Denied" on Database

The CLI fails with a SQL permission error. Check the following:

* The user running the CLI is **sysadmin** on the SQL Server instance
* SQL Server allows integrated authentication (required for Windows auth)
* The SQL Server service is running

### Web Client Shows "500.21" Error

The browser reports "Handler not recognized" after the install. Check the following:

* The .NET 10.0 Hosting Bundle is installed after the IIS features; see [Verify ASP.NET Core Module][Verify ANCM]
* Restart IIS: `iisreset /restart` (elevated prompt)

### CLI Exits Without Output

The CLI returns immediately without progress. Check the following:

* PowerShell 7 runs with administrator privileges
* `.\Nodinite.Installer.Cli.exe --version` prints a version
* The [Windows Event Log][] shows no application errors

## :fa-hand-point-right: Next Steps

* [:fa-forward-step: Step 5: Export Monitoring Agents][Step05]  

## :fa-link-horizontal: Related Topics

* [Updating from v6 to v7 – Migration Guide][Main]  
* [Step 7: Run the CLI Workflow (Elevated PowerShell 7) – fresh install reference][InstallPackage]  
* [Core Services Overview][Core Services]  
* [SQL Server Connection Strings][Connection Strings]  

[1]:{ndm}/Documentation%20Pictures/IM/Portal/Env/v6_v7/CLI_ValidateCoreServicesPackageInstallation.png
[2]:{ndm}/Documentation%20Pictures/IM/Portal/Env/v6_v7/CLI_ErrorsExample.png
[3]:{ndm}/Documentation%20Pictures/IM/Portal/Env/v6_v7/CLI_CoreServicesUpdateSucccess.png

[Backup Prompt]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20Steps/07%20-%20Install%20the%20Generated%20Package.md#config-db-backup-confirmation-prompt
[ConfigDB]:{ndr}/Core%20Services/Configuration%20Database/Overview.md
[Connection Strings]:{ndr}/Install%20and%20Update/Troubleshooting/SQL%20Server/Connection%20Strings.md
[Core Services]:{ndr}/Core%20Services/Overview.md
[DacFX]:https://aka.ms/dacfx-msi
[Firewall]:{ndr}/Install%20and%20Update/Getting%20started/2.%20Prerequisites.md#network-and-firewall-overview
[IIS]:{ndr}/Install%20and%20Update/Troubleshooting/IIS/Overview.md
[IIS Windows Features]:{ndr}/Install%20and%20Update/Troubleshooting/IIS/IIS%20Windows%20Features.md
[InstallPackage]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20Steps/07%20-%20Install%20the%20Generated%20Package.md
[Log API]:{ndr}/Core%20Services/Log%20API/Overview.md
[Logging Service]:{ndr}/Core%20Services/Logging%20Service/Overview.md
[Logon as a Service]:{ndr}/Install%20and%20Update/Troubleshooting/Windows/Logon%20as%20a%20Service%20right.md
[Main]:{ndr}/Install%20and%20Update/Getting%20started/Version%206/Updating%20from%20v6%20to%20v7.md
[Microsoft SQL Server]:{ndr}/Install%20and%20Update/Troubleshooting/SQL%20Server/SQL%20Server%20Options.md
[Monitoring]:{ndr}/Administration/2.%20Monitor%20Management/2.%20Monitor%20Agents/Features/What%20is%20a%20Monitor%20Agent.md
[Monitoring Service]:{ndr}/Core%20Services/Monitoring%20Service/Overview.md
[Monitoring Service Rights]:{ndr}/Core%20Services/Monitoring%20Service/Getting%20started/1.%20Prerequisites.md#what-windows-rights-does-the-monitoring-service-require
[MSDTC]:{ndr}/Install%20and%20Update/Troubleshooting/Windows/Transactions%20MSDTC.md
[Pickup Service]:{ndr}/Logging%20and%20Monitoring/Pickup%20LogEvents%20Service/Overview.md
[PowerShell 7]:https://learn.microsoft.com/en-us/powershell/scripting/install/install-powershell-on-windows
[SPN]:{ndr}/Install%20and%20Update/Troubleshooting/SQL%20Server/SPN.md
[SQL Server Sysadmin Requirements]:{ndr}/Install%20and%20Update/Troubleshooting/SQL%20Server/SQL%20Server%20Sysadmin%20Requirements.md
[Step03]:{ndr}/Install%20and%20Update/Getting%20started/Version%206/Updating%20from%20v6%20to%20v7/03%20-%20Download%20Binaries.md
[Step05]:{ndr}/Install%20and%20Update/Getting%20started/Version%206/Updating%20from%20v6%20to%20v7/05%20-%20Export%20Monitoring%20Agents.md
[Step07]:{ndr}/Install%20and%20Update/Getting%20started/Version%206/Updating%20from%20v6%20to%20v7/07%20-%20Download%20and%20Update%20Monitoring%20Agents.md
[Step09]:{ndr}/Install%20and%20Update/Getting%20started/Version%206/Updating%20from%20v6%20to%20v7/09%20-%20Remove%20Old%20Windows%20Services.md
[Step10]:{ndr}/Install%20and%20Update/Getting%20started/Version%206/Updating%20from%20v6%20to%20v7/10%20-%20Configure%20TLS.md
[V7 Servers]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20Steps/04%20-%20Servers.md
[Verify ANCM]:{ndr}/Install%20and%20Update/Troubleshooting/IIS/IIS%20Windows%20Features.md#verify-aspnet-core-module
[Web API]:{ndr}/Core%20Services/Web%20API/Overview.md
[Web Client]:{ndr}/Core%20Services/Web%20Client/Overview.md
[Windows Event Log]:{ndr}/Administration/5.%20Settings/1.%20Alarm%20Plugins/Features/Event%20Log.md