! width='70' | Flag
! Description
! Option
! Default
! width='145' | Examples
|- valign="top"
| {{Mono|stop}}
| Stop Stops a running HTTP server. By default, the database server will be stopped as well, unless one of the flags {{Mono|-c}} or {{Mono|-l}} is specified.|
|
|
| {{Mono|-c}}
| Starts the server in ''client mode'', and sends all commands to a database server instance. {{Mark|Introduced with Version 7.0.1}}
|
|
|
| {{Mono|-d}}
| Turn on debugging. Debugging information is output to ''standard error''.
| <code>[[Options#DEBUG|DEBUG]]</code>
|
|
|- valign="top"
| {{Mono|-e<num>}}
| Specify Specifies the port on which the server will send events to clients.| <code>[[Options#EVENTPORT|EVENTPORT]]</code>
| {{Mono|1985}}
| {{Mono|-e9998}}
|- valign="top"
| {{Mono|-h<num>}}
| The Specifies the port on which the HTTP server will be addressable. This port is e.g. specified in the HTTP URLs.| <code>[[Options#HTTPPORT|HTTPPORT]]</code>
| {{Mono|8984}}
| {{Mono|-h9999}}
| {{Mono|-l}}
| Starts the server in ''local mode'', and executes all commands in the embedded database context.
|
|
|
|- valign="top"
| {{Mono|-n<name>}}
| The server Specifies the host name on which the server is running.| <code>[[Options#HOST|HOST]]</code>
| {{Mono|localhost}}
| {{Mono|-nserver.basex.org}}
|- valign="top"
| {{Mono|-p<num>}}
| The Specifies the port on which the BaseX Server will be addressable.| <code>[[Options#SERVERPORT|SERVERPORT]]</code>
| {{Mono|1984}}
| {{Mono|-p9998}}
|- valign="top"
| {{Mono|-P<pass>}}
| The Specifies the user password, which will be used by the HTTP services for opening to open a new session. If this flag is omitted, the password will be requested on command line. ''Warning'': when the password is specified on command-line, it may be visible to others.|
| {{Mono|admin}}
| {{Mono|-Uadmin -Padmin}}
| {{Mono|-R}}
| Deactivates the REST service.
|
|
|
|- valign="top"
| {{Mono|-s<num>}}
| The Specifies the port that will be used to stop the HTTP server. {{Mark|Introduced with Version 7.0.1}}|
|
|
|- valign="top"
| {{Mono|-U<name>}}
| The Specifies the user name, which will be used by the HTTP services for opening a new session.If this flag is omitted, the password will be requested on command line.|
| {{Mono|admin}}
| {{Mono|-Uadmin}}
| {{Mono|-W}}
| Deactivates the WebDAV service.
|
|
|
|- valign="top"
| {{Mono|-z}}
| Do Does not generate any [[Logging|log files]].|
|
|}