Skip to content

Command line arguments

R edited this page Dec 2, 2021 · 11 revisions

Unless otherwise specified these arguments will replace the values present in the config file, i.e. CLI has higher priority than the config.

Name Description Example
-h, --help Show help text related to running serversync from the command line java -jar serversync.jar -h
-a, --address=127.0.0.1 The address of the server to connect to, this is only relevant when running in client mode. java -jar serversync.jar -a 127.0.0.1
-p, --port=12345 The port of the serversync server, for the server side this is what port you are serving on, for the client this is what port you are connecting to. java -jar serversync.jar -p 12345
-o, --progress Run the client in 'progress only' mode, this will show progress without a GUI and close once complete. java -jar serversync.jar -o
-q, --silent Run in client mode without any GUI or progress reporting java -jar serversync.jar -q
-s, --server Run in server mode. java -jar serversync.jar -s
-i, --ignore A glob pattern or series of patterns to ignore during the sync process.
For clients this will ignore files during the delete phase.
For servers this will stop files from being sent to clients.
java -jar serversync.jar -i mods/**/*.ignore mods/Optifine.jar otherfiles/coolstuff/**
-l, --lang A language code for setting the UI language, e.g. zh_CN or en_US Note that there is limited language support at the moment see: Languages java -jar serversync.jar -l zh_CN
-r, --root Set the root directory to serve from (e.g. Minecraft root) java -jar serversync.jar -r ~/Instances/MegaMinecraft