For the complete documentation index, see llms.txt. This page is also available as Markdown.

Replication server CLI

How to use the Replication server in the command-line

To start a local Replication Server yourself, you can copy the command to clipboard from within the Replication Server tab in coherence Hub.

Pasting this command into a terminal allows you to launch a Replication Server with specific settings.

Scripts holding these command can be also found at:

<project-path>/Library/coherence/run-replication-server-[rooms|worlds].[bat|sh]

To see a full list of flags available:

Minimal working example

For worlds, --schema must be provided:

For rooms, --default-schema must be provided:

Substitute <sdk-path> with the path to a coherence package installation, and <project-path> is the path to your Unity project root.

If you installed coherence through the Asset Store, check <project-path>/Packages/io.coherence.sdk. If you installed through the Scoped Registry, check <project-path>/Library/PackageCache/io.coherence.sdk@<hash>.

Toolkit.schema and Gathered.schema must be provided.

Allowing connections from other machines

By default, the Replication Server binds to 127.0.0.1, which means only connection from within the local machine will be accepted. To accept connections from any other machine, use --local-ip-override "0.0.0.0".

Last updated

Was this helpful?