---
title: "Command Line Options"
description: "Invantive UniversalSQL Server is started from a shell, from a service manager or from a container."
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/docs/invantive-universalsql-server/command-line-options
original: https://documentation.invantive.eu/en/docs/invantive-universalsql-server/command-line-options
updated: 2026-10-09T00:00:00Z
license: https://documentation.invantive.eu/en/
---

Invantive UniversalSQL Server is started from a shell, from a service manager or from a container. Almost everything it needs is configured in `appsettings.json` and in the [[Environment Variables]]; the command line carries what differs from one run to the next: the addresses it listens on, the environment it runs as, and the folder it reads its configuration from.

An option is written as `--name=value`. `/name=value` works as well, and the value may also follow as a separate argument, as in `--urls http://*:8080`. Options are not case sensitive and may be given in any order. The colon is not a separator between name and value, since it separates the section from the key: `--urls:http://*:8080` is read as a name without a value and has no effect. A single dash is not accepted either: `-urls=http://*:8080` stops the start with exit code 6.

## Asking for the Usage

```
Invantive.UniversalSQL.Server --help
```

The usage is written to the standard output and the program ends with exit code 0, without reading the configuration and without checking the licence, so it also answers on a server which is not set up yet. `/?` and `/h` do the same, and so do `-h`, `-?` and `--h`. Available from release 27.0.

## Options
The following options are accepted:
- `--urls=<urls>`: listen on these addresses for the web interface, separated by semicolons, for example `http://*:8080`. Defaults to the addresses in the configuration. The port of the TDS protocol is not set here but with `--Server:TdsListenIpPort`; see below.
- `--environment=<name>`: run as this environment, which selects `appsettings.<name>.json` next to `appsettings.json`. Defaults to `Production`.
- `--contentRoot=<folder>`: read the configuration files from this folder. Defaults to the current folder of the process, which is not necessarily the folder the program is in.

## Overruling a Setting of the Configuration File
Every setting of `appsettings.json` can be overruled by naming its section and its key:

```
Invantive.UniversalSQL.Server --Server:TdsListenIpPort=1433
```

The command line is read last and therefore wins: a value given there overrules the environment variables, which in turn overrule `appsettings.<environment>.json` and `appsettings.json`. The section is `Server`, as described in [[Invantive UniversalSQL Server/Configuration/Configuration|Configuration]]. A setting overruled this way is not remembered; a value which is to hold for every run belongs in the configuration file.

## See Also

- [[Invantive UniversalSQL Server/Configuration/Installation|Installation]]
- [[Invantive UniversalSQL Server/Configuration/Configuration|Configuration]]
- [[Environment Variables]]

## Exit Code
The program ends with an exit code which a batch file or a scheduler reads to decide whether the next step may run. It returns 0 and 6; the meaning of every code is listed in [[Exit Codes/Exit Codes|Exit Codes]].

## Release Notes

- [Invantive UniversalSQL Server](/en/release-notes/products/invantive-universalsql-server)
  - [26.0 to 27.0](/en/release-notes/products/invantive-universalsql-server?step=26.0-to-27.0)
  - [25.0 to 26.0](/en/release-notes/products/invantive-universalsql-server?step=25.0-to-26.0)

