Skip to main content

Operations

Administration and operation of the Sync-in server via NPM and the command-line interface (CLI).

The Sync-in CLI covers common server lifecycle operations, including initialization, starting and stopping services, user management, as well as updates and database migrations.

CommandDescription
npx sync-in-server initCopies the default config file environment.yaml
npx sync-in-server startStarts the server in attached mode
npx sync-in-server start -dStarts the server in detached mode (daemon)
npx sync-in-server stopStops the server
npx sync-in-server statusShows the server status (daemon mode only)
npx sync-in-server versionDisplays the installed version
npx sync-in-server migrate-dbRuns database migrations
npx sync-in-server updateUpdates the server to the latest available version
npx sync-in-server create-userCreate a user or administrator in the database
npx sync-in-server helpDisplays help and the list of available commands
info

The --prefix option can be added to any command if you're running npx sync-in-server from a directory other than where it was installed.

tip

npx sync-in-server update also runs database migrations automatically.