- mqi_start is semidet
- Main entry point for running the Machine Query Interface in
"Embedded Mode" and designed to be called from
the command line. Embedded Mode is used when launching the Machine
Query Interface as an embedded part of another language (e.g.
Python). Calling mqi_start/0 from Prolog interactively is not
recommended as it depends on Prolog exiting to stop the MQI, instead
use mqi_start/1 for interactive use.
To launch embedded mode:
swipl mqi --write_connection_values=true
This will start SWI Prolog and invoke the mqi_start/0 predicate and exit the process when that predicate stops. Any command line arguments after the standalone
--
will be passed as Options. These are the same Options that mqi_start/1 accepts and are passed to it directly. Some options are expressed differently due to command line limitations, see mqi_start/1 Options for more information.Any Option values that cause issues during command line parsing (such as spaces) should be passed with
""
like this:swipl mqi --write_connection_values=true --password="HGJ SOWLWW"
For help on commandline options run
swipl mqi --help