$ basex -h
BaseX [Standalone]
Usage: basex [-bcdiLoqsuvVwxzbcCdiLoqsuvVwxz] [file]
[file] Execute XQuery file
-b<pars> Bind external XQuery variables
-C<file> Execute command script
-c<cmd> Execute database command(s)
-d Activate debugging mode
|- valign="top"
| {{Mono|-c<cmd>}}
| Launches database Runs the specified [[commands ]] and skips the interactive modequits. Several commands can be separated by semicolons.
|
| {{Mono|-c"list;info"}}
|- valign="top"
| {{Mono|-C<cmd>}}
| Runs all [[commands]] from the specified text file and quits. Empty lines and lines starting with the number sign {{Mono|#}} are skipped.
|
| {{Mono|-C commands.txt}}
|- valign="top"
| {{Mono|-d}}
Since {{Version|7.1}}, multiple query files and {{Mono|-c}}/{{Mono|-i}}/{{Mono|-q}} flags can be specified. All other options will be set before any other operation takes place. The specified inputs, query files, queries and commands will be subsequently evaluated after that in the given order. The standard input can be parsed by specifying a single dash ({{mono|-}}) as argument.
Since The {{VersionMono|7.1.1-C}} and {{Mono|-L}} option to add a trailing newline after query result serialization is availableoptions have been in added in {{Version|7.1.1}}.
==BaseX Server==