---
title: "Command Line Options"
description: "Invantive Query Tool Multi-Platform can be started with options on the command line."
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/docs/invantive-query-tool-multi-platform/command-line-options
original: https://documentation.invantive.eu/en/docs/invantive-query-tool-multi-platform/command-line-options
updated: 2026-11-10T00:00:00Z
license: https://documentation.invantive.eu/en/
---

Invantive Query Tool Multi-Platform can be started with options on the command line. They are meant for a first start on a device without a licence and for the diagnosis of a start which does not come up; everything else is done in the window.

An option is written as `/name` or `/name:value`. The forms `-name` and `--name` are accepted as well, and an equals sign may be used instead of the colon, so a command written for the Microsoft Windows products keeps working. Options are not case sensitive and may be given in any order. An option which the product does not know is ignored, and so is an option which needs a value but has none, such as `/license-key` on its own. An argument which starts with neither a slash nor a dash is the name of a file; see below.

## Asking for the Usage

```
Invantive.QueryTool /help
```

The usage is written to the terminal that started the program and the program ends directly afterwards. `/?` and `/h` do the same, as do `-h` and `--help`. Started from the desktop or the dock there is no terminal to write to and nothing is shown, so ask for the usage from a terminal. Available from release 27.0.

## Registering a Licence

A licence key can be handed over on the command line, which registers it on the device and uses it for this run:

```
Invantive.QueryTool /license-key:12345-67890-12345-67890-12345
```

The same key can be provided through the environment variable `INVANTIVE_LICENSE_KEY`; the option takes precedence over the variable. Without either, the licence registered on the device is used, and when there is none the product asks for one; see [[Invantive Query Tool Multi-Platform/License Registration|License Registration]].

## Accepting the Agreement and Providing the User
Five options let a run without a person at the keyboard accept the licence agreement, provide the user and report what is left to answer, for a first start on a device without a window to answer in. Available from release 27.0:
- `/acceptlicense:<variant code>`: accept the agreement of the licence variant of the licence key in use. A code which is not that variant accepts nothing.
- `/personfirstname:<name>`, `/personlastname:<name>` and `/personphonework:<number>`: the first name, the last name and the work phone number of the user, used when the stored value is missing or not acceptable.
- `/licenseinfo`: write the state of the licence, the agreement and the personal information as JSON to the standard output and end, without changing anything. It tells which variant to name.

The second spelling with dashes, such as `--accept-license=<variant code>`, is accepted as well. Every option has an environment variable with the same effect, and the settings files record whether an answer was given in a window, on the command line or in the environment; see [[Unattended Start]].


## Tracing From the Start
Three options switch the trace on from the start of the product, so the start itself is traced without setting environment variables first. Available from release 27.0:
- `/trace`: switch trace on.
- `/tracetofile`: write the trace to a file as well, which also switches trace on.
- `/tracefolder:<folder>`: the folder of the trace files as a full path, which also switches trace to file on. A folder which is not a full path ends the start with `itgentsm009`.

The second spelling with dashes, such as `/trace-to-file`, is accepted as well. From release 28.0 the pane "Trace" of the window "Preferences" changes the same settings without a restart once the product runs. See [[Trace Settings]].

## Diagnosing a Start Which Fails

Three options exist for the diagnosis of a start which does not come up or of an editor which does not accept keyboard input:

- `--gui-only`: start the user interface without starting the engine. No licence is checked and no database can be opened, so a window which appears with this option and not without it places the problem in the engine rather than in the user interface.
- `--no-tm`: start without syntax highlighting in the editor.
- `--diag`: report window activation, keyboard focus and the contents of the editor continuously on the status bar.

`--no-tm` and `--diag` are only recognised in exactly this form, with two dashes and without a value. Written as `/no-tm` or `-diag` they are accepted without an error, but they have no effect.

Messages about problems during the start are written to the error output of the terminal, so start the product from a terminal when it does not come up.

## Opening Files

```
Invantive.QueryTool first-job.sql second-job.sql
```

Every argument which starts with neither a slash nor a dash is taken as the name of a file. Once the window is up, each file is opened in a query tab of its own. A name of a file which does not exist is ignored. This is also how Microsoft Windows, most Linux desktops and macOS hand over a document which is opened with the product.

## Starting Without the Stored Documents

```
Invantive.QueryTool /nodocuments
```

The product keeps its query tabs when the window is closed and shows them again at the next start; see [[Invantive Query Tool Multi-Platform/Main Window|Main Window]]. A run started with `/nodocuments` neither shows the tabs of the previous run nor keeps its own: it starts with one empty tab and leaves the tabs which were kept as they were. The option is meant for a demonstration, a screenshot or a reproduction for support, where the statements of an earlier run must not appear on the screen and must not be lost. Closing the window then asks about every tab whose text was not saved to a file, since nothing else keeps that text. Available from release 28.0.

## See Also

- [[Invantive Query Tool Multi-Platform/Installation|Installation]]
- [[Invantive Query Tool Multi-Platform/License Registration|License Registration]]
- [[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, 130 and 143; the meaning of every code is listed in [[Exit Codes/Exit Codes|Exit Codes]].

## Release Notes

- [Invantive Query Tool Multi-Platform](/en/release-notes/products/invantive-query-tool-multi-platform)
  - [new in 27.0](/en/release-notes/products/invantive-query-tool-multi-platform?step=new-in-27.0)

