---
title: "Step 7: Run the CLI Workflow (Elevated PowerShell 7) – Install Nodinite v7"
description: "Step 7 for installing Nodinite v7: extract the generated ZIP bundle, review config.cli.json, and run Nodinite.Installer.Cli.exe validate, dry-run, and deploy-environment from an elevated PowerShell 7 prompt, then verify each Core Service."
---

# :fa-forward-step: Step 7: Run the CLI Workflow (Elevated PowerShell 7)

Run the generated package, the ZIP bundle from [Step 6: Review and Download][Step06], to install the Environment. The entry point is `Nodinite.Installer.Cli.exe`, a .NET 10 based installer. On Windows Server, it:

* creates or updates the [Configuration Database][] with SqlPackage;
* creates one [IIS][] web site, with its own port, for each [Core Service][Core Services];
* finds the TLS certificate by subject in `LocalMachine\WebHosting` or `LocalMachine\My` and binds it ([Step 4: Servers][Step04 TLS]);
* installs or updates the selected [Monitoring Agents][] and [Log Agents][].

It creates no [Log Database][Log Databases]; the [Logging Service][] creates the first one on its first start. You run the same workflow for every [update][Updating Nodinite v7].

## Before You Start

* Complete the [Prerequisites][] on every server, including the [Logon as a Service][] right for the service identities, DCOM Local Activation for the [Monitoring Service][] ([Monitoring Service prerequisites][Monitoring Service Prerequisites]), and a configured [MSDTC][].
* Extract the ZIP bundle and keep the folder structure intact.
* Open [PowerShell 7][]<sup>:fa-arrow-up-right-from-square:</sup> as administrator, signed in as a user who is a local administrator on the server.
* Run all commands from the bundle root folder.

>[!TIP]
>
>* The CLI runs as the user of the elevated [PowerShell 7][]<sup>:fa-arrow-up-right-from-square:</sup> prompt.
>* That user needs SQL Server `sysadmin` rights on the affected SQL Server instances, unless you use Azure SQL Managed Instance.
>
>Review the [SQL Server Sysadmin Requirements][] before you run the CLI workflow.

## ZIP bundle content

After extraction, the root contains:

* `InstallationMedia`
* one folder per server, for example `nodinitesrv01`
* `Nodinite.Installer.Cli.exe`

Each server folder holds the generated `config.cli.json` that the CLI reads, and a `readme.txt` with the commands for that server.  
![ZIP bundle with CLI][3]  
*Example of the extracted ZIP bundle root with InstallationMedia, a server folder, and `Nodinite.Installer.Cli.exe`.*  

The bundle holds no installation scripts or MSI installers: the Installer CLI and the :Nodinite: assemblies in the ZIP files are strong-named, not Authenticode-signed; see [Code Signing and Binary Integrity][]. If Windows blocks a file from the downloaded ZIP, unblock the ZIP before you extract it, for example with `Unblock-File`.

## Review bundle files before execution

Before you run the installation commands:

* Review the `config.cli.json` values for paths, ports, and selected agents.
* Verify the SqlPackage and ZIP-related paths if placeholders are still present.
* Keep the extracted structure unchanged, so that media paths resolve.

## CLI help and discovery

Use the CLI help to list the commands and their options:

```powershell
.\Nodinite.Installer.Cli.exe --help
.\Nodinite.Installer.Cli.exe --version
.\Nodinite.Installer.Cli.exe install --help
.\Nodinite.Installer.Cli.exe deploy-environment --help
.\Nodinite.Installer.Cli.exe install-agent --help
.\Nodinite.Installer.Cli.exe uninstall --help
.\Nodinite.Installer.Cli.exe uninstall-agent --help
.\Nodinite.Installer.Cli.exe teardown-environment --help
.\Nodinite.Installer.Cli.exe validate --help
.\Nodinite.Installer.Cli.exe status --help
.\Nodinite.Installer.Cli.exe diagnose --help
```

## Recommended workflow

1. Validate the package without changing the machine.
2. Run a dry run to check the install or update actions.
3. Deploy when validation and the dry run are clean.

```powershell
.\Nodinite.Installer.Cli.exe validate --config .\nodinitesrv01\config.cli.json
.\Nodinite.Installer.Cli.exe deploy-environment --config ".\nodinitesrv01\config.cli.json" --dry-run
.\Nodinite.Installer.Cli.exe deploy-environment --config ".\nodinitesrv01\config.cli.json"
```

<div class="mermaid">
flowchart TB
    V["fa:fa-list-check validate"] -->|"Clean"| DR["fa:fa-flask deploy-environment<br/>--dry-run"]
    V -->|"Errors"| FIX["fa:fa-wrench Fix config<br/>or prerequisites"]
    DR -->|"Clean"| DE["fa:fa-play deploy-environment"]
    DR -->|"Errors"| FIX
    DE --> BK{"Verified backup of the<br/>Configuration Database?"}
    BK -->|"Yes"| AP["fa:fa-gears Apply: database schema,<br/>IIS sites, TLS bindings, agents"]
    BK -->|"No: prompt"| PR{"Back up now,<br/>Continue, or Abort?"}
    PR -->|"Back up now or Continue"| AP
    PR -->|"Abort install"| AB["fa:fa-ban Stop without changes"]
    AP --> VER["fa:fa-circle-check Verify each Core Service"]
    style V fill:#2678BD,color:#fff
    style DR fill:#2678BD,color:#fff
    style FIX fill:#c33d34,color:#fff
    style DE fill:#E47528,color:#fff
    style BK fill:#FFD525
    style PR fill:#FFD525
    style AP fill:#E47528,color:#fff
    style AB fill:#c33d34,color:#fff
    style VER fill:#93d16d
</div>

*Diagram: the checks (blue) run before any change; `deploy-environment` (orange) stops at the [Configuration Database][] backup gate (yellow) when no verified backup exists; errors and an abort (red) leave the machine unchanged; the run ends with the verification of the [Core Services][] (green).*  

![Installation Progress][2]  
*Example of installation progress output while the CLI configures the Environment.*  

## Config DB backup confirmation prompt

During `deploy-environment`, if the [Configuration Database][] has no verified backup, the CLI asks for your intent before it applies schema changes:

* **Back up now**: the installer tries to create a verified backup and then continues.
* **Continue**: proceed, because you already have a verified Configuration Database backup.
* **Abort install**: stop without applying changes.

![Config DB backup confirmation prompt][4]  
*Example of the CLI safety prompt shown when a database upgrade is pending and a backup confirmation is required.*  

Use this prompt as an explicit safety gate in production environments.

## Passing arguments when needed

You can provide secrets and connection strings in the config values, as command arguments, as environment variables, or at the CLI prompts.

Common runtime overrides:

* `--database-connection-string <ConnectionString>`: the [Configuration Database][] connection string, when [Step 3][Step03 SQL] is set to provide it at run time
* `--agent-connection-string AgentType=ConnectionString`: an [Agent Database][] connection string
* `--agent-connection-string AgentType#Id=ConnectionString`: the same, for duplicate agent types
* `--service-password <Password>`: the service account password; [gMSA accounts][gMSA] need none
* `--oauth2-webclient-secret <Secret>` and `--oauth2-agentinstall-secret <Secret>`: the OAuth client secrets, which the Portal doesn't store ([Step 2: Auth][Step02])

For prompt-required database values, you can also use environment variables:

* `NODINITE_DATABASE_CONNECTION_STRING`
* `NODINITE_AGENT_<TYPE>_CONNECTION_STRING`

## Common CLI commands

Validate the configuration file and write a JSON report:

```powershell
.\Nodinite.Installer.Cli.exe validate --config .\nodinitesrv01\config.cli.json --strict-file-locks --output report.json --format json
```

The install commands differ in scope. Each one installs what's missing and updates what's there:

|Command|Installs or updates|Typical use|
|---|---|---|
|`install`|The Core Services only (IIS sites, databases, configuration)|A Core-Services-only package, such as the [v6 to v7 migration][V6V7 Step04]|
|`install-agent`|One agent|Adding or updating one agent later|
|`deploy-environment`|The Core Services and every agent in the configuration, in one run|A new installation or an update of the whole Environment, as in the recommended workflow above|

The `README.txt` at the root of the bundle lists the workflow for your package. To run `install` unattended:

```powershell
.\Nodinite.Installer.Cli.exe install --config .\nodinitesrv01\config.cli.json --non-interactive
```

`--non-interactive` disables every prompt, so supply all service passwords, OAuth2 secrets, and connection strings up front; a missing value aborts the run. On an upgrade from v6, it also aborts at the "stop the Nodinite 6 Logging/Monitoring services" step, which needs an operator to acknowledge it.

Install one agent:

```powershell
.\Nodinite.Installer.Cli.exe install-agent --config .\nodinitesrv01\config.cli.json --agent AzureLogicApps
```

## Proxy overrides

To change the proxy behavior from [Step 3][Step03 Proxy] for one run, pass proxy options on the installer commands:

* `--proxy-mode <system|none|manual>`
* `--proxy-url <Url>`
* `--proxy-use-default-credentials` or `--proxy-no-default-credentials`
* `--proxy-bypass-local` or `--proxy-no-bypass-local`
* `--proxy-bypass <Pattern>`

## Verify the installation

| Check | Where |
|---|---|
| Sign in to the [Web Client][] with the administrator from Step 2, for example `https://nodinite.contoso.com:<port>/` | [Install the Web Client][Install Web Client] |
| Open the [Web API][] reference at `https://nodinite.contoso.com:<port>/scalar` | [Install the Web API][Install Web API] |
| The [Log API][] accepts [Log Events][] at `https://nodinite.contoso.com:<port>/LogAPI/api/LogEvent` | [Install the Log API][Install Log API] |
| The [Logging Service][] created the first Log Database | [Install Log Databases][] |
| The [Monitoring Service][] runs and evaluates the agents | [Install the Monitoring Service][Install Monitoring Service] |
| The [MCP Endpoint][] responds, unless **Keep the MCP Server stopped** is selected | [Keep the MCP Server Stopped][Step04 MCP] |

Use the ports from [Allocated ports][Step06 Allocated ports]. Then continue with the [Post Installation Steps][].

## Important behavior notes

* `uninstall` removes the Core Services only.
* `teardown-environment` removes the agents first, then the Core Services; see [Uninstall Nodinite v7][].
* [gMSA accounts][gMSA] don't need passwords.

## Troubleshooting

Run with `--verbose` for deeper diagnostics:

```powershell
.\Nodinite.Installer.Cli.exe deploy-environment --config .\nodinitesrv01\config.cli.json --verbose
```

When the CLI reports file locks, see [File Locks Detected][]. For a deeper failure analysis, continue with [Complete Installation Troubleshooting Guide][TroubleshootInstall] and the [Troubleshooting Overview][].

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

* [:fa-clipboard-check: Post Installation Steps][Post Installation Steps]  
* [:fa-book: Return to Install Nodinite v7][Main]  

## :fa-link-horizontal: Related Topics

* [:fa-forward-step: Step 6: Review and Download][Step06]  
* [:fa-wrench: Complete Installation Troubleshooting Guide][TroubleshootInstall]  
* [:fa-arrow-turn-up: Update Nodinite v7][Updating Nodinite v7]  
* [:fa-trash: Uninstall Nodinite v7][Uninstall Nodinite v7]  
* [:fa-user-shield: SQL Server Sysadmin Requirements][SQL Server Sysadmin Requirements]  
* [:fa-file-signature: Code Signing and Binary Integrity][Code Signing and Binary Integrity]  
* [OAuth2 client secrets (Install Nodinite v7 - OpenID)][OpenID Client Secrets]  
* [Troubleshooting OAuth 2.0 Validation Failures (Error 10.3 / 10.4)][OAuth2Troubleshooting]  
* [Step 4: Deploy Core Services with CLI – v6 to v7 migration][V6V7 Step04]  

[2]:{ndm}/Documentation%20Pictures/IM/Portal/Env/Windows/InstallationInProgress.png
[3]:{ndm}/Documentation%20Pictures/IM/Portal/Env/ZIPWithCLI.png
[4]:{ndm}/Documentation%20Pictures/IM/Portal/Env/ConfigDBBackupMissing_ConfirmIntent.png

[Agent Database]:{ndr}/Install%20and%20Update/Troubleshooting/SQL%20Server/Agent%20Database.md
[Code Signing and Binary Integrity]:{ndr}/Core%20Services/Security/Code%20Signing%20and%20Binary%20Integrity.md
[Configuration Database]:{ndr}/Core%20Services/Configuration%20Database/Overview.md
[Core Services]:{ndr}/Core%20Services/Overview.md
[File Locks Detected]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Updating%20Nodinite%20v7.md#file-locks-detected
[gMSA]:{ndr}/Install%20and%20Update/Troubleshooting/Windows/gMSA%20accounts.md
[IIS]:{ndr}/Install%20and%20Update/Troubleshooting/IIS/Overview.md
[Install Log API]:{ndr}/Core%20Services/Log%20API/Getting%20started/2.%20Install.md
[Install Log Databases]:{ndr}/Core%20Services/Log%20Databases/Getting%20started/2.%20Install.md
[Install Monitoring Service]:{ndr}/Core%20Services/Monitoring%20Service/Getting%20started/2.%20Install.md
[Install Web API]:{ndr}/Core%20Services/Web%20API/Getting%20started/2.%20Install.md
[Install Web Client]:{ndr}/Core%20Services/Web%20Client/Getting%20started/2.%20Install.md
[Log Agents]:{ndr}/Administration/1.%20Log%20Management/3.%20Log%20Agents/Features/What%20is%20a%20Log%20Agent.md
[Log API]:{ndr}/Core%20Services/Log%20API/Overview.md
[Log Databases]:{ndr}/Administration/5.%20Settings/2.%20Log%20Databases/Overview.md
[Log Events]:{ndr}/Core%20Services/Log%20Event/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%207/Install%20Nodinite%20v7.md
[MCP Endpoint]:{ndr}/Core%20Services/MCP%20Endpoint/Overview.md
[Monitoring Agents]:{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 Prerequisites]:{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
[OAuth2Troubleshooting]:{ndr}/Install%20and%20Update/Troubleshooting/OAuth%202.0/Troubleshooting%20OAuth2%20Validation%20Failures.md
[OpenID Client Secrets]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20-%20OpenID.md#client-secrets
[Post Installation Steps]:{ndr}/Install%20and%20Update/Getting%20started/7.%20Post%20Installation%20Steps.md
[PowerShell 7]:https://learn.microsoft.com/en-us/powershell/scripting/install/install-powershell-on-windows
[Prerequisites]:{ndr}/Install%20and%20Update/Getting%20started/2.%20Prerequisites.md
[SQL Server Sysadmin Requirements]:{ndr}/Install%20and%20Update/Troubleshooting/SQL%20Server/SQL%20Server%20Sysadmin%20Requirements.md
[Step02]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20Steps/02%20-%20Auth.md
[Step03 Proxy]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20Steps/03%20-%20Infrastructure.md#configure-network--proxy
[Step03 SQL]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20Steps/03%20-%20Infrastructure.md#configure-sql-server-connectivity
[Step04 MCP]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20Steps/04%20-%20Servers.md#keep-the-mcp-server-stopped
[Step04 TLS]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20Steps/04%20-%20Servers.md#core-host-tls
[Step06]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20Steps/06%20-%20Review%20and%20Download.md
[Step06 Allocated ports]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20Steps/06%20-%20Review%20and%20Download.md#allocated-ports
[Troubleshooting Overview]:{ndr}/Install%20and%20Update/Troubleshooting/Overview.md
[TroubleshootInstall]:{ndr}/Install%20and%20Update/Troubleshooting/Troubleshooting%20Installation%20Issues.md
[Uninstall Nodinite v7]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Uninstall%20Nodinite%20v7.md
[Updating Nodinite v7]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Updating%20Nodinite%20v7.md
[V6V7 Step04]:{ndr}/Install%20and%20Update/Getting%20started/Version%206/Updating%20from%20v6%20to%20v7/04%20-%20Deploy%20with%20CLI.md
[Web API]:{ndr}/Core%20Services/Web%20API/Overview.md
[Web Client]:{ndr}/Core%20Services/Web%20Client/Overview.md