Command Line Options
Invantive Data Access Point is started from a shell, from a service manager or from a container. Almost everything it needs is configured in appsettings.json in the application root 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.DataAccessPoint.V2 --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, separated by semicolons, for examplehttp://*:8080. Defaults to the addresses in the configuration.--environment=<name>: run as this environment, which selectsappsettings.<name>.jsonnext toappsettings.json. Defaults toProduction.--contentRoot=<folder>: read the configuration files from this folder, the application rootROOT. Defaults to the current folder of the process, which is not necessarily the folder the program is in.--print-required: write every setting of the product with its environment variable, default, type and description, one JSON object per line, and end with exit code 0, without reading the configuration. Available from release 28.0.--check-configuration: read the configuration as a start does, write the report of every setting, as text to the standard error and as one line of JSON to the standard output, and end without starting. The exit code is 0, or 9 when a required setting is missing or a value is not valid. Available from release 28.0. See Configuration.
Overruling a Setting of the Configuration File
Every setting of appsettings.json can be overruled by naming its section and its key:
Invantive.DataAccessPoint.V2 --DataAccessPoint:RedirectHttps=false
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 DataAccessPoint, as described in 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
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.