! width='70' | Flag
! Description
! Default
! width='165' | Examples
|- valign="top"
| <code>[file]</code>
| Execute the specified XQuery file.
|
|
|- valign="top"
| <code>-c<cmd></code>
| Launch database commands and skip interactive mode. The flag should be placed last, all remaining characters are interpreted as commands. Several commands can be separated by semicolons.
|
| <code>-c"list;info"</code>
|- valign="top"
| <code>-d</code>
| Turn on debugging. Debugging information is output to ''standard error''.
|
|
|- valign="top"
| <code>-n<name></code>
| Specify the server name on which the server is running.
| <code>localhost</code>
| <code>-nserver.basex.org</code>
|- valign="top"
| <code>-o<file></code>
| Command and query output is written to the specified file.
| <code>-p9999</code>|
|- valign="top"
| <code>-p<num></code>
| Specify the port on which the server is running. The default port is '''| <code>1984'''.</code>
| <code>-p9999</code>
|- valign="top"
| <code>-P<pass></code>
| Specify the user password. ''Warning'': when the password is specified on command-line, it may be visible to others.
|
| <code>-Uadmin -Padmin</code>
|- valign="top"
| <code>-q<expr></code>
| Execute the specified string as XQuery expression. The flag should be placed last, as all remaining characters are interpreted as XQuery.
|
| <code>-q"doc('input')//head"</code>
|- valign="top"
| <code>-U<name></code>
| Specify the user name.
|
| <code>-Uadmin</code>
|- valign="top"
| <code>-v</code>
| Process information is written to standard output (<code>STDOUT</code>).
|
|
|- valign="top"
| <code>-V</code>
| Detailed query information is written to ''standard output'', including compilation and profiling steps.
|
|
|- valign="top"
| <code>-w</code>
| By default, whitespaces around text nodes are chopped when a database is created. This flag can be specified to suppress chopping.
|
|
|- valign="top"
| <code>-z</code>
| Skip the serialization of XQuery results. This flag may be useful for analyzing query plans.
|
|
|}