|- valign="top"
| {{Mono|-b<pars>}}
| Bind Binds external variables to XQuery expressions. This flag may be specified multiple times; key/value pairs . Variables names and their values are separated delimited by equality signs (<code>=</code>).The names may be optionally prefixed with dollar signs.| <code>[[Options#BINDINGS|BINDINGS]]</code>
|
| <code>-bv=example<br />-q"declare variable $v external; $v"</code>
|- valign="top"
| {{Mono|-c<cmd>}}
| Launch Launches database commands and skip skips the interactive mode. The flag should be placed last, as all remaining characters are interpreted as commands. Several commands can be separated by semicolons.|
|
| {{Mono|-c"list;info"}}
|- valign="top"
| {{Mono|-d}}
| Turn Turns on the debuggingmode. Debugging information is output to ''standard error''.| <code>[[Options#DEBUG|DEBUG]]</code>
|
|
|- valign="top"
| {{Mono|-i<input>}}
| Open Opens a database or XML document specified by the argument. The opened input may be further processed by an XQuery expression.|
|
| {{Mono|-iitems.xml -q"//item"}}
|- valign="top"
| {{Mono|-n<name>}}
| Specify Specifies the server host name on which the server is running.| <code>[[Options#HOST|HOST]]</code>
| {{Mono|localhost}}
| {{Mono|-nserver.basex.org}}
|- valign="top"
| {{Mono|-o<file>}}
| Command All command and query output is written to the specified file.|
|
|
|- valign="top"
| {{Mono|-p<num>}}
| Specify Specifies the port on which the server is running.| <code>[[Options#PORT|PORT]]</code>
| {{Mono|1984}}
| {{Mono|-p9999}}
|- valign="top"
| {{Mono|-P<pass>}}
| Specify Specifies the user password. If this flag is omitted, the password will be requested on command line. ''Warning'': when the password is specified on command-linevia this flag, it may be visible to others.|
|
| {{Mono|-Uadmin -Padmin}}
|- valign="top"
| {{Mono|-q<expr>}}
| Execute Executes the specified string as XQuery expression. The flag should be placed last, as all remaining characters are interpreted as XQuery.|
|
| {{Mono|-q"doc('input')//head"}}
|- valign="top"
| {{Mono|-s<pars>}}
| Specify Specifies parameters for serializing XQuery results; see [[Serialization]] for more details. This flag may be specified multiple times; key/value pairs . Key and values are separated by the equality signs sign (<code>=</code>).| <code>[[Options#SERIALIZER|SERIALIZER]]</code>
|
| <code>-smethod=text</code>
|- valign="top"
| {{Mono|-U<name>}}
| Specify Specifies the user name.If this flag is omitted, the user name will be requested on command line. |
|
| {{Mono|-Uadmin}}
|- valign="top"
| {{Mono|-v}}
| Process Prints process and timing information is written to the ''standard output ({{Mono''.|STDOUT}}).
|
|
|- valign="top"
| {{Mono|-V}}
| Detailed Prints detailed query information is written to the ''standard output'', including details on the compilation and profiling steps.| <code>[[Options#QUERYINFO|QUERYINFO]]</code>
|
|
|- valign="top"
| {{Mono|-w}}
| By default, whitespaces around text nodes are [[Options#CHOP|chopped]] when a database is created. This flag can be specified to suppress choppingpreserve whitespaces.| <code>[[Options#CHOP|CHOP]]</code>
|
|
| {{Mono|-x}}
| This flags turn on the output of the query execution plan, formatted in [[Options#XMLPLAN|XML]].
| <code>[[Options#XMLPLAN|XMLPLAN]]</code>
|
|
|- valign="top"
| {{Mono|-z}}
| Skip Skips the serialization of XQuery results. This flag is useful for analyzing if the query plansis profiled or analyzed.| <code>[[Options#SERIALIZE|SERIALIZE]]</code>
|
|