> For the complete documentation index, see [llms.txt](https://docs.coherence.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.coherence.io/2.3/manual/replication-server/command-line-interface.md).

# Replication server CLI

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

<figure><img src="/files/DzOshFNFKF8nJl7JkWkF" alt=""><figcaption></figcaption></figure>

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

{% hint style="info" %}
Scripts holding these command can be also found at:

`<project-path>/Library/coherence/run-replication-server-[rooms|worlds].[bat|sh]`&#x20;
{% endhint %}

To see a full list of flags available:

```shellscript
path/to/replication-server rooms --help
path/to/replication-server world --help
```

#### Minimal working example

For worlds, `--schema` must be provided:

{% code overflow="wrap" %}

```shellscript
path/to/replication-server world --schema "<sdk-path>/Coherence.Toolkit/Toolkit.schema,<project-path>/Assets/coherence/Gathered.schema"
```

{% endcode %}

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

{% code overflow="wrap" %}

```shellscript
path/to/replication-server rooms --default-schema "<sdk-path>/Coherence.Toolkit/Toolkit.schema,<project-path>/Assets/coherence/Gathered.schema"
```

{% endcode %}

{% hint style="info" %}
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.
{% endhint %}

#### 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"`.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.coherence.io/2.3/manual/replication-server/command-line-interface.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
