Changes

Jump to navigation Jump to search
705 bytes removed ,  16:59, 13 December 2018
no edit summary
$ basex -h
BaseX [Standalone]
Usage: basex [-bcdiIoqrRstuvVwxz] [input] [input] XQuery or command file, or query string -b<args> Bind external query variables -c<input> Execute commands from file or string -d Toggle debugging output -i<input> Bind file or database to context -I<input> Bind input string to context -o<path> Write output to local file -q<expr> Execute XQuery expression -r<num> Run query multiple times -R Toggle query execution -s<args> Set serialization parameters -t[path] Run tests in file or directory -u Toggle updates in original files -v Toggle output of progress info -V Toggle detailed query output -w Toggle whitespace chopping -x Toggle output of query plan -z Toggle output of query result
</pre>
The meaning of all flags is listed in the following table. If an equivalent database option exists (which can be specified via the <code>[[Commands#SET|SET]]</code> command), it is listed as well. For the examples to work escaping some characters might be necessary, depending on your Operating System.
{| class="wikitable"
|- valign="top"
! width='120' | Flag
| {{Code|-t}}
| Runs all [[Unit Module|Unit tests]] in the specified file or directory.
| |
| -t project/tests
|- valign="top"
For the examples to work escaping some characters might be necessary, depending on your Operating System.
{| class="wikitable"
|- valign="top"
! width='120' | Flag
| Starts the server as service (i.e., in the background). Use [[YAJSW]], or start BaseX as an ordinary background process, to get more options.
|
|
|- valign="top"
| {{Code|-z}}
| <code>[[Options#LOG|LOG]]</code>
| <code>true</code>
|
|}
For the examples to work escaping some characters might be necessary, depending on your Operating System.
{| class="wikitable"
|- valign="top"
! width='120' | Flag
|- valign="top"
| {{Code|-U&lt;name&gt;}}
| Specifies the user name. If this flag is omitted, the user name will be requested on command line.
| <code>[[Options#USER|USER]]</code>
|
For the examples to work escaping some characters might be necessary, depending on your Operating System.
{| class="wikitable"
|- valign="top"
! width='120' | Flag
| <code>[[Options#STOPPORT|STOPPORT]]</code> or<br/><code>pom.xml</code>
| <code>8985</code>
|
|- valign="top"
| {{Code|-S}}
| Starts the server as service (i.e., in the background). Use [[YAJSW]], or start BaseX as an ordinary background process, to get more options.
|
|
|- valign="top"
| {{Code|-U&lt;name&gt;}}
| Does not generate any [[Logging|log files]].
| <code>[[Options#LOG|LOG]]</code>
|
|}
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu