$ basex -h
BaseX [Standalone]
Usage: basex [-bcdiLosuvVwxz] [queryinput] [queryinput] Execute query input file or expression
-b<pars> Bind external query variables
-c<input> Execute commands from file or string
! Examples
|- valign="top"
| {{Code|[queryinput]}}| Updated with {{Version|7.4}}. Evaluates the specified input:* The input string may point to an XQuery expressionexisting file. If the specified input file suffix is a valid {{Code|.bxs}}, the file reference or URLcontent will be evaluated as [[Commands#BaseX Command Scripts|Command Script]]; otherwise, its content it will be evaluated insteadas XQuery expression.* Otherwise, the input string itself is evaluated as XQuery expression.
|
|• {{Code|"doc('X')//head"}}<br/>• {{Code|query.xq}}<br/>• {{Code|commands.bxs}}<br/>
|- valign="top"
| {{Code|-b<pars>}}
|- valign="top"
| {{Code|-c<input>}}
| Executes [[commandsCommands]]:
* Several commands in the input can be separated by semicolons.
* If the specified input is a valid file reference or URL, its content will be executed instead. Empty lines and lines starting with the number sign {{Code|#}} will be ignored.
$ basexclient -h
BaseX [Client]
Usage: basexclient [-bcdiLnopPsUvVwxz] [queryinput] [queryinput] Execute query input file or expression
-b<pars> Bind external query variables
-c<input> Execute commands from file or string
! width='165' | Examples
|- valign="top"
| {{Code|[queryinput]}}| Updated with {{Version|7.4}}. Evaluates the specified input:* The input string may point to an XQuery expressionexisting file. If the specified input file suffix is a valid {{Code|.bxs}}, the file reference or URLcontent will be evaluated as [[Commands#BaseX Command Scripts|Command Script]]; otherwise, its content it will be evaluated insteadas XQuery expression.* Otherwise, the input string itself is evaluated as XQuery expression.
|
|
|• {{Code|"doc('X')//head"}}<br/>• {{Code|query.xq}}<br/>• {{Code|commands.bxs}}<br/>
|- valign="top"
| {{Code|-b<pars>}}
|- valign="top"
| {{Code|-c<input>}}
| Executes [[commandsCommands]]:
* Several commands in the input can be separated by semicolons.
* If the specified input is a valid file reference or URL, its content will be executed instead. Empty lines and lines starting with the number sign {{Code|#}} will be ignored.
* Updated: all options are now evaluated in the given order
* Updated: {{Code|-i}} creates main-memory representations for specified sources
* Updated: Options {{Code|-C}}/{{Code|-c}} and {{Code|-q}}/{{Code|[queryinput]}} merged
* Updated: Option {{Code|-L}} also separates serialized items with newlines (instead of spaces)