Skip to content

Command line arguments

R edited this page Jul 13, 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.

-h, --help - Show help text related to running serversync from the command line

-a, --address=127.0.0.1 - The address of the server to connect to, this is only relevant when running in client mode.

-p, --port=12345 - The port of the server to connect to, this is only relevant when running in client mode.

-o, --progress - Run the client in 'progress only' mode, this will show the GUI but will auto sync and close once complete.

-q, --silent - Run in client mode without any GUI, i.e. headless

-s, --server - Run in server mode.

-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.