invantive documentationpart of invantive cloud
Invantive Support ForumsLog In / Sign Up

Command Line Options

Invantive Data Hub is driven entirely from the command line. An argument is written as a slash, the name, a colon and the value:

/database:Demo\Dummy /file:c:\jobs\first-job.sql /interactive:false

Arguments may be given in any order, and most arguments have a long and a short form. The names are case sensitive and written in lower case, except for /statement, /results, /steps and the options of the debugger, whose names are not case sensitive. This product reads its own command line rather than the shared one of the other Invantive programs, so the separator is a colon here and an equals sign is not accepted. /help or /? prints the list below and ends with exit code 0; from release 27.0 onward it does so before the licence is loaded, so the list is also available on a device on which no licence has been registered yet. An argument in another format ends the program with itgendhb002 and exit code 5; a leading dash instead of a slash is such a format. An argument with a name the program does not know ends it with itgendhb304, the list below and exit code 1; a name with an alias, such as /verbose@ecb, of an argument which takes no alias does the same with itgendhb022.

Arguments

The following arguments are accepted:

  • /database (/d): the database, as GROUP\NAME. The older name /connection (/c) still works.
  • /file (/f): the file of Invantive UniversalSQL statements to execute.
  • /statement (/s): one statement to execute, instead of a file. Available from release 27.0. See below.
  • /user (/u): the log-on code.
  • /password (/p): the password in plain text.
  • /encryptedpassword (/e): the password encrypted with the key of the device it runs on, encoded in Base64.
  • /logfile (/l): the file to write all output to. An existing file is appended to.
  • /logoverwrite (/lo): overwrite that file instead of appending. Default false; written without a value it means true. The argument has to stand before /logfile, since the file is opened as soon as /logfile is read.
  • /verbose: print extensive progress messages. This argument has no short form.
  • /silent, also written /quiet: print only the results, the errors and the warnings, such as for a script or an AI agent. Default false; written without a value it means true. Available from release 27.0.55. See below.
  • /interactive (/i): whether questions may be asked. Questions are asked unless /interactive:false is given, on which the run reports itgendhb282, "HEADLESS MODE REQUESTED", and answers nothing. A run whose input does not come from a terminal, such as a scheduled task, a pipeline or docker exec without -t, cannot answer a question either and continues headless by itself, reporting itgendhb283, "RUNNING HEADLESS". /interactive:true asks questions all the same, such as for answers fed through a pipe. Up to and including release 27.0.54 such a run had to give /interactive:false, or ended with itgendhb209, "Use of headless mode is required when using a non-interactive console"; on Linux and macOS it was not recognised at all.
  • /results (/r): whether the results of a statement are printed to the standard output. Available from release 27.0. See below.
  • /tableformat: the layout of the printed results, box or compact. Available from release 27.0.55. See below.
  • /progress: the number of seconds between two progress lines on the standard error while a statement runs; 0 prints none. Default 5 in agent mode and 0 otherwise. Available from release 27.0.55. See below.
  • /no-agent: switch agent mode off, also written -no-agent or --no-agent. See AI Agent. Available from release 27.0.55.
  • /maxrows, /maxbytes and /maxcellwidth: the largest number of rows and bytes printed in full, and of characters printed per value; 0 or -1 means no limit. Available from release 27.0.55. See below.
  • /timestamp (/t): leave the timestamp off the messages printed. Output carries a timestamp unless this argument is given; /timestamp:false keeps it.
  • /licensekey (/lk): use this licence key instead of the one in the user profile.
  • /acceptlicense: accept the licence agreement of the variant named in the value, which has to be the variant of the licence key in use. Available from release 27.0. See below.
  • /personfirstname, /personlastname and /personphonework: the first name, the last name and the work phone number of the user, used when the stored value is missing or not acceptable. Available from release 27.0. See below.
  • /licenseinfo: write the state of the licence, the agreement and the personal information as JSON and end. Available from release 27.0. See below.
  • /trace, /tracetofile and /tracefolder: switch trace on from the start of the run, write the trace to a file as well, and name the folder of the trace files. Available from release 27.0. See below.
  • /print-required, also written --print-required: write every setting of the application configuration file with its environment variable, default, type and description, one JSON object per line, and end with exit code 0. Nothing is read for it: no configuration file, no licence and no network. Available from release 28.0. See Configuration.
  • /check-configuration, also written --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 running anything. 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.
  • /variables (/v): one or more NAME=VALUE assignments to Invantive Script variables.
  • /attributes (/a): one or more NAME=VALUE assignments to the attributes of a data container.
  • /agent: run as within the context of an AI agent, for tests, as if one of the environment variables of an agent were set; -agent and --agent are accepted as well. An agent code after a colon names the agent, such as /agent:claude-code. A run within an agent prints itgendhb319, "Executed within the context of an AI agent of …", before the licence check. See AI Agent. Available from release 27.0.55.
  • /debug: run the statements under the PSQL debugger, with the name of a debug plan or interactive. Available from release 28.0. See below.
  • /debugjournal: the file the debugger writes the journal of the run to.
  • /postmortem: the file the debugger writes a post-mortem to.
  • /debugoutput: text or ndjson, the form of the answers of the debugger and of a comparison. Defaults to text.
  • /debugcompare: compare the journals of two runs, as first.ndjson,second.ndjson, and end.
  • /steps: the file to write the step statistics of every SQL statement to, one line of JSON per step. Available from release 28.0. See below.

The options of the debugger, /steps, /progress, /no-agent, /tableformat, /maxrows, /maxbytes, /maxcellwidth, /acceptlicense, /licenseinfo, the three options of the person and the three options of the trace have no short form.

/variables and /attributes switch the reading of the rest of the command line: everything after them is read as assignments until the next slash argument. Up to and including release 26.0 the reading stopped one argument later than that, at the first argument without an equals sign, so an argument such as /statement:"select 1 where a = b" was read as an assignment.

One Statement on the Command Line

Available from release 27.0. A job of one or two statements needs no file: /statement carries the statement itself, in the way psql -c and bash -c do. The value follows a colon, or is the next argument, which is the form that survives a shell without further quoting:

/database:Demo\Dummy /statement:"select code, description from Customers@eol"
/database:Demo\Dummy /statement "select code, description from Customers@eol"

Four properties of the option are worth knowing:

  • The option may be given more than once, and the statements then run in the order they stand on the command line, so /s:"local define X 1" /s:"select 1" runs the definition first.
  • The value is one statement, whatever it holds. The rule that a blank line separates two statements applies to a file, not here, so a block of Invantive Script which holds a blank line of its own arrives whole.
  • /file and /statement together are refused with itgendhb297 and exit code 5, because the command line does not show in which order the two would run. A file is run from a statement as well, by handing over its name preceded by an at sign, so /statement:"@c:\jobs\first-job.sql" /statement:"select 1" states the order the file and the statement run in.
  • The run is headless: questions are not asked and no log-on dialogue appears, as with /interactive:false. The results are printed all the same, unlike a run which asks for headless mode itself: a statement on the command line is typed by somebody who waits for the answer. /interactive:true next to the option asks for the interactive mode, on which the prompt appears once the statements have run. A headless run needs /database, and credentials for a data container which does not carry them itself.

An option without its statement, such as a /statement which is the last argument of the command line, ends the program with itgendhb298 and exit code 5.

References to Invantive Script variables are expanded in the value exactly as in a statement from a file, so /variables applies to it. The expansion is a text substitution which happens before the statement is parsed: whoever composes the command line decides what the statement becomes. A value taken from elsewhere — a scheduler, a web form, another program — therefore belongs in a variable of the statement rather than in the text of it, and the same holds for the value of /variables itself.

The shell has the first say over the text. PowerShell expands ${MY_NAME} inside double quotes and hands over what it made of it, so a statement holding a variable reference is written in single quotes: /statement:'select ${MY_NAME}'. In cmd.exe the same reference passes through double quotes unharmed.

Printing the Results

Available from release 27.0. /results decides on its own whether the results of a statement are printed, apart from /interactive, which decides whether questions may be asked. Both were one decision until release 27.0: a headless run printed no results, so a scheduled job could not report its answers and a run at a terminal could not be kept quiet.

Without /results the behaviour is the one every earlier release had, with one addition:

  • an interactive run prints its results;
  • a run which asks for headless mode with /interactive:false prints none;
  • a run which carries its statements in /statement prints them, although it is headless;
  • a run which turns headless because its input does not come from a terminal prints them.

/results:true prints the results whatever the run asked for, and /results:false prints none. Written without a value, /results means true.

/database:Demo\Dummy /file:c:\jobs\first-job.sql /interactive:false /results:true

The results are written to the standard output, and from release 27.0 onward to the file of /logfile as well, so a run which logs what it did also logs the answers it got. Up to and including release 26.0 the log file held the messages of the run alone, and results had to be kept by redirecting the standard output.

In the log file the results are written one line per line of the result, each one carrying the channel STDOUT in front of it:

2026-11-05 21:56:52.579 Information itgendhb302: STDOUT ┌────────┐
2026-11-05 21:56:52.579 Information itgendhb302: STDOUT │   X    │
2026-11-05 21:56:52.579 Information itgendhb302: STDOUT │ number │
2026-11-05 21:56:52.579 Information itgendhb302: STDOUT ├────────┤
2026-11-05 21:56:52.579 Information itgendhb302: STDOUT │      1 │
2026-11-05 21:56:52.579 Information itgendhb302: STDOUT └────────┘

The channel says where the line came from, so the results of a statement can be told from what the program itself reported, and the file keeps holding one message per line. A statement whose results are not printed writes nothing to the log file either: /results decides for both.

Layout of the Results

Available from release 27.0.55. The results are printed as the DuckDB command line prints them. A person sees a box with the column names and data types on top, numbers aligned to the right and NULL for an empty value. At a terminal a result of more than 40 rows shows its first and last 20 rows, with two rows of dots in between and a footer which tells how many rows there are. Here with /maxrows:4, from select value, 'customer_' || value name from range(5000, 1):

┌───────┬────────────────────────┐
│ value │          NAME          │
│ int64 │        varchar2        │
├───────┼────────────────────────┤
│     1 │ customer_1             │
│     2 │ customer_2             │
│   ·   │           ·            │
│   ·   │           ·            │
│  4999 │ customer_4999          │
│  5000 │ customer_5000          │
├───────┴────────────────────────┤
│ 5.000 rows (4 shown) 2 columns │
└────────────────────────────────┘

Output which goes to a file or a pipe keeps every row, as scheduled jobs rely on it. A column is as wide as its widest value shown, at most 50 characters, and the box is narrowed to the width of the terminal. Up to and including release 27.0.54 the results were a grid of dashes and vertical bars with columns of 15 to 30 characters, and every row was printed.

When an AI agent reads the output, see AI Agent, the results are a Markdown table without padding, with the data type in each header. An agent pays for every character it reads; 40 rows of three numbers and texts take 2,408 bytes as a box and 1,344 bytes in this layout. The result of 5,000 rows above reads:

| value:INT64 | NAME:VARCHAR2 |
|---|---|
| 1 | customer_1 |
| 2 | customer_2 |
| … 4960 rows omitted … |
| 4999 | customer_4999 |
| 5000 | customer_5000 |
first 20 and last 20 of 5000 rows (/maxrows:0 /maxbytes:0 for all), hash fe11c3c3d772411c

The compact layout is used in agent mode: when the run is within the context of an AI agent and the standard output is not a terminal, or when the run was marked with /agent. /no-agent or the environment variable INVANTIVE_AGENT_MODE with 0 switches agent mode off, and the box is printed. A result of up to 1,000 rows and 10,000 bytes is printed in full; a larger one shows its first and last 20 rows. A value longer than 500 characters is cut, with the number of characters left out, such as …(+1980 chars). A vertical bar in a value is written as \| and a line break as \n. The footer is printed for an empty result, for a result of 10 rows or more and for every result which was cut. Its hash covers every row, also the rows left out, does not depend on the order of the rows, and tells an empty value from the text NULL, so two runs can be compared without printing their rows.

For the agent the rows of a select are read as a stream: once the limit is passed, the rows are only counted and hashed, and the query is stopped 100,000 rows later. The footer then gives the number of rows as a lower bound, such as first 20 of at least 101001 rows (query stopped early; /maxrows:0 /maxbytes:0 for all). A statement after such a select, such as local export results, finds no rows; /maxrows:0 reads the whole result.

/tableformat:box or /tableformat:compact chooses the layout whatever the run is; /tableformat:markdown is accepted for compact. /maxrows, /maxbytes and /maxcellwidth change the limits, where 0 or -1 means no limit. An unknown layout is refused with itgendhb320 and an invalid limit with itgendhb321, both with exit code 5. The file of /logfile receives the results as they were printed.

/database:Demo\Dummy /statement:"select * from range(5000, 1)" /tableformat:box /maxrows:0

Explain as a Tree

Available from release 28.0 and the beta release 27.1 before it. The answer of explain and explain analyze is printed as a tree of its steps instead of a table of 40 columns. Each step shows its operation, what it works on, the algorithm of a join, and only the figures that are known: the estimated rows, the rows received and handed on, the time of the step itself and the counters that are not nought. Steps which are the same read below the same parent, such as the reads of the inner side of a nested loop, are shown once with their number. For explain analyze the first line holds the totals of the statement. Every other result is printed as a table. A person sees the steps on lines, here for select count(*) from range(10, 1) r join range(5, 1) s on r.value = s.value where r.value > 2 and s.value > 2; the figures depend on the run:

Total: 416.9 ms, cpu 410.6 ms, 32 rows read, 1 row returned, heap 919,008 bytes, expression_cache_misses=3, joins_by_nested_loop=1, layers_passed_through=19, pairs_evaluated=24, plan_builds=1
Statement  (rows 1, own 331.1 ms, expression_cache_misses=3, layers_passed_through=19, plan_builds=1)
└─ Select columns: 1 columns  (rows 1, own 3.0 ms)
   └─ Group by  (rows 3 → 1, own 3.3 ms)
      └─ Column chaining into wider list  (rows 3, own 1.8 ms)
         └─ Filter: r.value > 2 and s.value > 2  (rows 3, own 1.7 ms)
            └─ Inner join by: inner; R.value=S.value; nested loop: the right side is evaluated per outer row  (rows 32 → 3, own 17.8 ms, joins_by_nested_loop=1, pairs_evaluated=24)
               ├─ Filter: Where conditions before the join: r.value > 2  (rows 8, own 2.1 ms)
               │  └─ Data container I/O on 'R' (RANGE)  (rows 8, own 47.4 ms)
               └─ Data container I/O on 'S' (RANGE) ×8  (rows 24, own 8.9 ms)

In agent mode the steps are indented by two spaces per level, as the DuckDB command line shows its plans, with the figures as name=value and plain numbers; the plan of the same statement with explain:

Statement
  Select columns
    Group by
      Column chaining into wider list
        Filter: r.value > 2 and s.value > 2
          Inner join by; nested loop: the right side is evaluated per outer row
            Filter: Where conditions before the join: r.value > 2
              Data container I/O on 'R' (RANGE)
            Data container I/O on 'S' (RANGE)

The table is still available to every other client, such as Invantive Query Tool and Invantive MCP Server, and to a select on SystemSqlExecutionSteps@DataDictionary.

Progress of a Statement

Available from release 27.0.55. In agent mode a statement which runs longer than 5 seconds writes a line to the standard error every 5 seconds, and a last one when it is done, so an AI agent can tell a long statement from one which hangs. The figures are those of the Progress window of Invantive Query Tool: the calls to the data containers, the files read, the rows read from the data containers, the rows processed by all steps of the statement together and the rows it returned. A percentage is not given, since a data container rarely tells in advance how many rows it will return.

progress: elapsed 2.0s, calls 0, files 0, rows read 593995, rows processed 763645, rows returned 0
progress: elapsed 4.0s, calls 0, files 0, rows read 1402039, rows processed 1802619, rows returned 0
progress: elapsed 6.0s, calls 0, files 0, rows read 2249086, rows processed 2891680, rows returned 0
progress: done, elapsed 6.6s, calls 0, files 0, rows read 2500000, rows processed 2857144, rows returned 1

Above select count(*) from range(2500000, 1) r where mod(value, 7) = 0 with /progress:2. The lines are in English with plain numbers in every language, since a program reads them. While the statement runs, the rows processed are counted on every step they pass, including steps which only hand rows on; the last line takes the figures of the steps as they ended and can therefore be somewhat lower. /progress gives the number of seconds between two lines, also outside agent mode, such as /progress:30 for a long job at a terminal; /progress:0 prints none. A value which is not a whole number of 0 or more is refused with itgendhb324 and exit code 5. In release 27.0 only a select reports its progress; from release 27.1 every statement handed to the SQL engine does.

Errors, Warnings and a Silent Console

Available from release 27.0.55. Errors and warnings are written to the standard error, and every other message and the results to the standard output. A script or an AI agent can therefore tell a failure from the output of the run by the channel alone, together with the exit code. Up to and including release 27.0.54 every message went to the standard output, between the progress messages, and a validation error such as itgendhb003 was printed twice, the second time followed by "For support go to https://forums.invantive.eu.". It is now printed once.

/silent keeps the standard output to the results alone. It leaves out the start-up banner, the licence and session lines, the data containers opened, the connection overview and the progress messages, and a question which cannot be answered because the run is headless. Errors and warnings still go to the standard error. The file of /logfile and the trace still receive every message, so the information needed for support is kept.

/database:Demo\Dummy /statement:"select 1 as x" /silent

Within the context of an AI agent, the line itgendhb319 goes to the standard error when the run is silent. /silent decides what is printed, /interactive whether questions may be asked, and /results whether results are printed; each of the three is decided on its own.

Reporting the Connection

From release 27.0 a headless run reports the connection in the same words an interactive log on uses, so the log file of a scheduled job states what it ran against:

  • itgenlom016 with the time the log on took;
  • itgenlom035 with the version of the Invantive UniversalSQL engine, or itgenlom036 when the database needs no engine;
  • itgenlom037 with the table of active data containers, holding per container the alias, the name, the version, the data container identifier, the log-on code and the language, and a marker for a service container and for a container with partitions selected.

Up to and including release 26.0 a headless run reported the duration alone, under the message code itgendhb204, which no longer appears. A job which searches the output for that code reads itgenlom016 instead.

Running Under the Debugger

Available from release 28.0. /debug runs the statements of /file or /statement under the PSQL debugger, the same debugger which Invantive Query Tool Multi-Platform shows in a window. Data Hub has no window, so the debugger is driven in one of two forms:

  • /debug:interactive starts line mode, in the way gdb and pdb work. The run pauses before its first statement and, whenever it pauses, reads commands from the console after the prompt (psql-debug). The commands include break, continue (c), next (n), step (s), finish, print (p), where (bt), info locals, snapshot, quit (q) and help. When the input ends, the run is stopped.
  • /debug:<file> runs with a debug plan: a JSON file which states what to stop at, what to record and what to write. The run asks nothing and ends by itself. A breakpoint which would pause writes a snapshot instead.

With /debugoutput:ndjson every answer of line mode is one line of JSON and no prompt is shown, which suits a program or an AI agent that drives the run.

The source of a statement read from /file is the name of the file without its folder, and its lines count from 1. The source of a statement from /statement is command line.

The following example runs a file with a plan and writes a journal and a post-mortem:

/database:Demo\Dummy /file:c:\jobs\first-job.sql /debug:c:\jobs\first-job.plan.json /debugjournal:c:\jobs\run1.ndjson /postmortem:c:\jobs\failure.json

A debug plan may hold the following members. An unknown member, or a plan of a later version, is refused with itgendbg012 and the path of the member:

  • breakpoints: each with source and line, or with unit for a procedure or function, and optionally condition, hitCount, hitCountMode (equal, atLeast or multiple), action (pause, log or snapshot) and message.
  • logPoints: each with source, line, a message with expressions between braces, and optionally condition.
  • ioBreakpoints: each with whenStarting, whenFailed and contains, a text which the URL, the statement or the parameters of the request must contain.
  • exceptions: mode (none, uncaught or all) and the lists of message code patterns whenRaised, whenUncaught and never.
  • stepFilters, loopTables and coverage with its file.
  • journal: level, values, watch, maxLines and maxBytes; see below.
  • postMortem: firstPerCodeAndLocation and swallowed; see below.
  • recording: mode (record or playBack) and file; see below.
  • fixed: now, the moment in UTC as ISO 8601 that sysdate and the like return, randomSeed and orderedWorkers, so that a run can be repeated with the same outcome.
  • parallelOneByOne: run every parallel construct with degree 1.
  • personalData: mask, the default, or none. Secrets are always masked.
  • inspectOnly: on by default. The run then only reads: no value is changed, and the console runs no statement other than a query.
  • evaluationIoBudget, pauseAtStart and snapshotFile, the file the snapshots are added to, one line of JSON each.
  • version: 1, which is also the value when it is left out.

The following example plan writes a snapshot at line 12 and records the answers of the platforms:

{ "breakpoints":
  [ { "source": "first-job.sql", "line": 12, "action": "snapshot" }
  ]
, "journal": { "level": "calls", "values": "written" }
, "recording": { "mode": "record", "file": "c:\\jobs\\first-job.recording" }
, "snapshotFile": "c:\\jobs\\first-job.snapshots.ndjson"
}

/debugjournal and /postmortem only take effect together with /debug:

  • The journal holds one JSON object per line. Its last line has the kind end and holds the outcome of the run. The level of the plan decides what is recorded: exceptions, the default, records exceptions, I/O operations, pauses and output, calls adds calls and returns, and statements adds every step. The values decide which values written are recorded: none, the default, watched for the variables listed in watch, or written for every value. maxLines and maxBytes cap the size of the journal.
  • A post-mortem is a snapshot of the run at an exception which no handler catches, or which a handler swallows, written without pausing. A second post-mortem goes beside the first with a number, as failure.2.json. By default only the first exception per message code and location is written, so a loop over 37 companies writes one file per cause. In the plan, firstPerCodeAndLocation and swallowed switch these off.
  • The recording of the plan writes the answers of the platforms to its file with record, which replaces an existing file, and plays them back from that file with playBack. A file which is missing or is no recording is refused with itgendbg015.

/debugcompare compares two runs by their journals and then ends, without a database and without statements:

/debugcompare:c:\jobs\run1.ndjson,c:\jobs\run2.ndjson

The result is written to the standard output, as text or, with /debugoutput:ndjson, as one line of JSON. The exit code is 0 when both runs took the same path, wrote the same values, read the same rows and ended the same way, and 1 when they differ. A value which does not name two files separated by a comma, or a file which is missing or is no journal, is refused with itgendbg016.

Step Statistics

Available from release 28.0. /steps writes how each SQL statement of the run was executed to a file, one line of JSON per step, for a person or an AI agent who studies the performance of a statement. A step is an operation of the execution, such as the read of a table, a join, a filter or a sort, as in explain analyze. The file is emptied when the run starts. The lines of a statement are written when it ends, also when it fails. A statement which is not handed to the SQL engine, such as a local command of Invantive Script, writes no lines. An empty file name is refused with itgendhb307; a file which cannot be written is reported with the warning itgendhb308, and the run continues.

Each line holds the following members. A member whose value is not known is left out:

  • Statement: the number of the statement in the run, from 1.
  • StepId, ParentStepId and Depth: the number of the step within its statement, the number of the step that consumes its rows, and the depth below the root. The root has no parent and holds the text of the statement in Parameters.
  • Kind, Description, ObjectName, Alias and Parameters: what the step does, in a word such as DataContainerRead, Join or Sort and in words, the table it reads, the alias of its result and what it works on.
  • Algorithm and EstimatedRows: how a join matched its rows, and the number of rows of a table as its data container declares them.
  • RowsIn and RowsOut: the rows received and handed on.
  • DurationMs, HeapBytes and CpuNs: the duration in milliseconds, the bytes allocated and the processor time in nanoseconds, including the steps below.
  • StepClockMs and StepCpuMs: an estimate of the time of the step without the steps below, from the lifetimes of the steps.
  • ExclusiveDurationMs, ExclusiveCpuMs and ExclusiveHeapBytes: the wall-clock time, the processor time and the bytes allocated by the step itself, without the steps below, measured on every request for a row as explain analyze measures them.
  • Counters: what the step itself counted, such as PairsEvaluated, PlanBuilds or RowsSorted, only those which are not zero.

The names are those of the steps in the files of the performance study of the engine, so that the same tools read both. Measuring the exclusive figures costs a reading of the processor time per row per step, which only a run with /steps pays. The lines hold the text of each statement, the names of the tables and aliases it reads, counts and times, and never the values of a row.

The following example writes the steps of one statement:

/database:Demo\Dummy /statement:"select count(*) from systempackages@datadictionary" /interactive:false /steps:c:\jobs\steps.ndjson

Accepting the Agreement and Providing the User

Available from release 27.0. A run without a console can not answer the agreement menu or the window of the personal information, and ended on itgenuty727 or on a message about the personal information. These options answer both in advance:

/database:Demo\Dummy /file:c:\jobs\first-job.sql /interactive:false /licensekey:<licence key> /acceptlicense:<variant code> /personfirstname:John /personlastname:Smith /personphonework:"+31 10 2030405"

The value of /acceptlicense has to be the variant of the licence key in use. A run with another code reports itgenlhr047 and accepts nothing, and the message names the variant of the key. The person options replace only what is missing or not acceptable in the settings. Every option has an environment variable with the same effect, INVANTIVE_ACCEPT_LICENSE, INVANTIVE_PERSON_FIRST_NAME, INVANTIVE_PERSON_LAST_NAME and INVANTIVE_PERSON_PHONE_WORK_NUMBER, and the settings files record whether an answer was given in the menu, on the command line or in the environment. All of it, with the privacy consequences, is described in Unattended Start.

/licenseinfo tells which variant to name. It writes the state of the licence, the agreement and the personal information as JSON to the standard output, answers before the licence is checked, so also on a device where the agreement is not accepted yet, and ends with exit code 0. It accepts nothing and never writes the licence key or a personal value:

/licenseinfo /licensekey:<licence key>

The member agreement.variantCode is the value for /acceptlicense, to be used once agreement.text has been read. The other members are described in Unattended Start.

Tracing a Run

Available from release 27.0. Three options switch the trace on for one run, from its start, without setting environment variables first:

/database:Demo\Dummy /file:c:\jobs\first-job.sql /interactive:false /tracetofile /tracefolder:c:\jobs\trace

/trace switches trace on. /tracetofile writes the trace to a file as well and switches trace on. /tracefolder names the folder of the trace files as a full path and switches trace to file on; a folder which is not a full path ends the run with itgentsm009. The options add to the environment variables INVANTIVE_TRACE_ACTIVE, INVANTIVE_TRACE_TO_FILE and INVANTIVE_TRACE_FOLDER: a variable which already switches something on stays in effect. A script traces one of its steps with the statement Set Trace, and the item "Trace" of the Preferences menu changes the settings of an interactive run. All ways to set the trace are described in Trace Settings.

Naming a Data Container

/user, /password, /encryptedpassword and /attributes may be followed by an at sign and the alias of a data container, as /user@ecb:someone. The value then applies to that container only. Without an alias the value applies to the container which has no alias.

Log File Name

The name of the log file may hold placeholders, which are expanded when the program starts, in the folder names as well as in the file name. The date and the time are those of UTC:

  • %Y year, %j day of the year (001–366), %m month, %d day of the month, %u name of the day of the week in English, such as Monday;
  • %H hour, %M minute, %S second;
  • %D domain name, %U user name, %h machine name.

Network and Disk Use at the End of a Run

From release 27.1 the log file ends with two lines on what the run did, just before the line with the number of messages logged:

  • itgendhb309, the network: the number of calls to each host, the protocol, and the bytes sent and received, with the totals in front. Calls answered from a cache count as calls, but sent and received nothing. Calls the program makes for itself during the run, such as the check of the licence, are marked "by the process". A redirect to another host, such as from documentation.invantive.com to documentation.invantive.eu, counts as a call of its own, whose bytes stay with the first one.
  • itgendhb310, the disk: the bytes read and written through the files the products manage, such as the cache, the downloads and the files written by local export results and local export documents, and the number of files.

The lines are in English, as is the number of messages after them, so that they can be compared between runs. For example:

2026-11-02 14:50:59.061 Information itgendhb309: Network I/O: 4 calls to 4 hosts, 702 B sent and 14 KB received: license.invantive.eu (HTTP, by the process) 1 call, 552 B sent, 7 KB received; documentation.invantive.com (HTTP) 1 call, 75 B sent, 4 KB received; www.invantive.com (HTTP) 1 call, 75 B sent, 3 KB received; documentation.invantive.eu (HTTP) 1 call, 0 B sent, 0 B received. Besides: 1 local call without network or disk.
2026-11-02 14:50:59.061 Information itgendhb310: Disk I/O: 34 KB written in 1 write of 1 file.
2026-11-02 14:50:59.061 Information itgendhb037: Logged 87 messages.

When the check itgeniom001 of the internal consistency checks is on, both lines add what the runtime and the operating system observed for the process. A third line, itgendhb311, names the hosts which received more HTTP requests than were registered as session I/O. The trace holds the same two lines at the end of each session, as itgencmr723 and itgencmr724.

Example

Run a file against the database invoicing in group WS203, without interaction, with two provider attributes and one script variable:

/database:WS203\invoicing /file:c:\jobs\first-job.sql /interactive:false /attributes api-url=https://start2.exactonline.nl api-redirect-url=https://clientredirect.invantive.com /variables "MY_NAME=John Doe"

The variable is used in the statements as ${MY_NAME}.

Compliance

/password puts a password on the command line, where the process list and the shell history can read it. Prefer an interactive log on, a pre-authenticated connection, or /encryptedpassword, which is bound to the device and useless elsewhere.

/personfirstname, /personlastname and /personphonework put personal data on the command line in the same way. The environment variables of Unattended Start avoid that, and the trace of the command line leaves the values of these three options out.

/statement is read by the same eyes. A statement which defines a password or encrypts one is better placed in a script file, which is readable by its owner alone. The trace file leaves such a statement out: a statement holding pwd, password, secret or key is recorded by its length only, in the same way a statement of a script file is.

Release Notes