Skip to content

Command line arguments

R edited this page Oct 5, 2020 · 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 server to connect to, this is only relevant when running in client mode. java -jar serversync.jar -p 12345
-o, --progress Run the client in 'progress only' mode, this will show the GUI but will auto sync and close once complete. java -jar serversync.jar -o
-q, --silent Run in client mode without any GUI, i.e. headless 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 java -jar serversync.jar -l zh_CN