! width='70' | Flag
! Description
! Default
! width='145' | Examples
|- valign="top"
| <code>-p<num></code>
| The port on which the BaseX Server will be addressable. The default port is '''| <code>1984'''.</code>
| <code>-p9998</code>
|- valign="top"
| <code>-r<num></code>
| The port on which the REST Server will be addressable. This port will be specified in the REST URLs. The default port is '''| <code>8984'''.</code>
| <code>-r9999</code>
|- valign="top"
| <code>-P<pass></code>
| The user password, which will be used by JAX-RX to communicate with the BaseX Server. The default password is '''admin'''. ''Warning'': when the password is specified on command-line, it may be visible to others.| <code>admin</code>
| <code>-Uadmin -Padmin</code>
|- valign="top"
| <code>-s<pars></code>
| Specify parameters for serializing XQuery results, as specified in the [http://www.w3.org/TR/xslt-xquery-serialization/ W3C XQuery Serialization] document. This flag may be specified multiple times; key/value pairs are separated by equality signs (<code>=</code>).
|
| <code>-sencoding=US-ASCII</code><br /><code>-sindent=no</code>
|- valign="top"
| <code>-U<name></code>
| The user name, which will be used by JAX-RX to communicate with the BaseX Server. The default user is '''| <code>admin'''.</code>
| <code>-Uadmin</code>
|- valign="top"