---
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."
---

# <i class="fal fa-forward-step" aria-hidden="true"></i> 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><i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i></sup> as administrator, signed in as a user who is a local administrator on the server.
* Run all commands from the bundle root folder.

<aside aria-label="Tip" class="nodinite-note nodinite-note--tip">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-lightbulb"></i> Tip</p>
<div class="nodinite-note__content"><ul>
<li>The CLI runs as the user of the elevated <a href="https://learn.microsoft.com/en-us/powershell/scripting/install/install-powershell-on-windows">PowerShell 7</a><sup><i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i></sup> prompt.</li>
<li>That user needs SQL Server <code>sysadmin</code> rights on the affected SQL Server instances, unless you use Azure SQL Managed Instance.</li>
</ul><p>Review the <a href="https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/sql-server-sysadmin-requirements/">SQL Server Sysadmin Requirements</a> before you run the CLI workflow.</p></div>
</aside>

## 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 <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> 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][].

## <i class="fal fa-hand-point-right" aria-hidden="true"></i> Next Steps

* [<i class="fal fa-clipboard-check" aria-hidden="true"></i> Post Installation Steps][Post Installation Steps]  
* [<i class="fal fa-book" aria-hidden="true"></i> Return to Install Nodinite v7][Main]  

## <i class="fal fa-link-horizontal" aria-hidden="true"></i> Related Topics

* [<i class="fal fa-forward-step" aria-hidden="true"></i> Step 6: Review and Download][Step06]  
* [<i class="fal fa-wrench" aria-hidden="true"></i> Complete Installation Troubleshooting Guide][TroubleshootInstall]  
* [<i class="fal fa-arrow-turn-up" aria-hidden="true"></i> Update Nodinite v7][Updating Nodinite v7]  
* [<i class="fal fa-trash" aria-hidden="true"></i> Uninstall Nodinite v7][Uninstall Nodinite v7]  
* [<i class="fal fa-user-shield" aria-hidden="true"></i> SQL Server Sysadmin Requirements][SQL Server Sysadmin Requirements]  
* [<i class="fal fa-file-signature" aria-hidden="true"></i> 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]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/Portal/Env/Windows/InstallationInProgress.png
[3]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/Portal/Env/ZIPWithCLI.png
[4]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/Portal/Env/ConfigDBBackupMissing_ConfirmIntent.png

[Agent Database]:https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/agent-database/
[Code Signing and Binary Integrity]:https://docs.nodinite.com/core-services/security/code-signing-and-binary-integrity/
[Configuration Database]:https://docs.nodinite.com/core-services/configuration-database/overview/
[Core Services]:https://docs.nodinite.com/core-services/overview/
[File Locks Detected]:https://docs.nodinite.com/install-and-update/getting-started/version-7/updating-nodinite-v7/#file-locks-detected
[gMSA]:https://docs.nodinite.com/install-and-update/troubleshooting/windows/gmsa-accounts/
[IIS]:https://docs.nodinite.com/install-and-update/troubleshooting/iis/overview/
[Install Log API]:https://docs.nodinite.com/core-services/log-api/getting-started/install/
[Install Log Databases]:https://docs.nodinite.com/core-services/log-databases/getting-started/install/
[Install Monitoring Service]:https://docs.nodinite.com/core-services/monitoring-service/getting-started/install/
[Install Web API]:https://docs.nodinite.com/core-services/web-api/getting-started/install/
[Install Web Client]:https://docs.nodinite.com/core-services/web-client/getting-started/install/
[Log Agents]:https://docs.nodinite.com/administration/log-management/log-agents/features/what-is-a-log-agent/
[Log API]:https://docs.nodinite.com/core-services/log-api/overview/
[Log Databases]:https://docs.nodinite.com/administration/settings/log-databases/overview/
[Log Events]:https://docs.nodinite.com/core-services/log-event/overview/
[Logging Service]:https://docs.nodinite.com/core-services/logging-service/overview/
[Logon as a Service]:https://docs.nodinite.com/install-and-update/troubleshooting/windows/logon-as-a-service-right/
[Main]:https://docs.nodinite.com/install-and-update/getting-started/version-7/install-nodinite-v7/
[MCP Endpoint]:https://docs.nodinite.com/core-services/mcp-endpoint/overview/
[Monitoring Agents]:https://docs.nodinite.com/administration/monitor-management/monitor-agents/features/what-is-a-monitor-agent/
[Monitoring Service]:https://docs.nodinite.com/core-services/monitoring-service/overview/
[Monitoring Service Prerequisites]:https://docs.nodinite.com/core-services/monitoring-service/getting-started/prerequisites/#what-windows-rights-does-the-monitoring-service-require
[MSDTC]:https://docs.nodinite.com/install-and-update/troubleshooting/windows/transactions-msdtc/
[OAuth2Troubleshooting]:https://docs.nodinite.com/install-and-update/troubleshooting/oauth-2-0/troubleshooting-oauth2-validation-failures/
[OpenID Client Secrets]:https://docs.nodinite.com/install-and-update/getting-started/version-7/install-nodinite-v7-openid/#client-secrets
[Post Installation Steps]:https://docs.nodinite.com/install-and-update/getting-started/post-installation-steps/
[PowerShell 7]:https://learn.microsoft.com/en-us/powershell/scripting/install/install-powershell-on-windows
[Prerequisites]:https://docs.nodinite.com/install-and-update/getting-started/prerequisites/
[SQL Server Sysadmin Requirements]:https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/sql-server-sysadmin-requirements/
[Step02]:https://docs.nodinite.com/install-and-update/getting-started/version-7/install-nodinite-v7-steps/02-auth/
[Step03 Proxy]:https://docs.nodinite.com/install-and-update/getting-started/version-7/install-nodinite-v7-steps/03-infrastructure/#configure-network--proxy
[Step03 SQL]:https://docs.nodinite.com/install-and-update/getting-started/version-7/install-nodinite-v7-steps/03-infrastructure/#configure-sql-server-connectivity
[Step04 MCP]:https://docs.nodinite.com/install-and-update/getting-started/version-7/install-nodinite-v7-steps/04-servers/#keep-the-mcp-server-stopped
[Step04 TLS]:https://docs.nodinite.com/install-and-update/getting-started/version-7/install-nodinite-v7-steps/04-servers/#core-host-tls
[Step06]:https://docs.nodinite.com/install-and-update/getting-started/version-7/install-nodinite-v7-steps/06-review-and-download/
[Step06 Allocated ports]:https://docs.nodinite.com/install-and-update/getting-started/version-7/install-nodinite-v7-steps/06-review-and-download/#allocated-ports
[Troubleshooting Overview]:https://docs.nodinite.com/install-and-update/troubleshooting/overview/
[TroubleshootInstall]:https://docs.nodinite.com/install-and-update/troubleshooting/troubleshooting-installation-issues/
[Uninstall Nodinite v7]:https://docs.nodinite.com/install-and-update/getting-started/version-7/uninstall-nodinite-v7/
[Updating Nodinite v7]:https://docs.nodinite.com/install-and-update/getting-started/version-7/updating-nodinite-v7/
[V6V7 Step04]:https://docs.nodinite.com/install-and-update/getting-started/version-6/updating-from-v6-to-v7/04-deploy-with-cli/
[Web API]:https://docs.nodinite.com/core-services/web-api/overview/
[Web Client]:https://docs.nodinite.com/core-services/web-client/overview/