Command-Line Options

From BaseX Documentation
Revision as of 12:25, 12 January 2011 by AW (talk | contribs) (Created page with "==BaseX Server== If you want to interact (execute commands, add databases, add users) with the server, start the server with the <code>-i</code> flag. :<code> > java -cp BaseX....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

BaseX Server

If you want to interact (execute commands, add databases, add users) with the server, start the server with the -i flag.

> java -cp BaseX.jar org.basex.BaseXServer -i

All available command-line flags can be listed by adding -h to the call:

> java -cp BaseX.jar org.basex.BaseXServer -h

Usage: BaseXServer [-s] [-dpz] [-c] [stop]
  stop     Stop existing server
  -c<cmd>  Execute initial database command(s)
  -d       Activate debugging mode
  -i       Enter interactive mode
  -p<num>  Set server port
  -s       Start as service
  -z       Suppress logging

If the server is succesfully started, this is coming up:

BaseX [Server]
Server was started.

BaseX Standalone