CLI Utilities

Found in <package-root>/.Runtime/<platform>/.

protocol-code-generator

protocol-code-generator --help

protocol-code-generator --help generate

      --log-level=LOG-LEVEL-STRING
                             the log level
      --log-file=LOG-FILE-STRING
                             log output file
      --panic-on-error       enable/disable panic on error

  -d, --schema=STRING        The schema file (.schema).
  -o, --output=STRING        Output file.
      --output-dir=STRING    Output directory (can only be used together with
                             --split).
  -c, --code=STRING          Which language to generate code for.
  -e, --ecs=STRING           Which flavour of ECS to generate code for.
      --split                Split into files.
      --debugoutput          Insert debug output in generated code.
      --sync=STRING          Path to Unity generated JSON file for creating the
                             generated.schema file.
      --emit-empty           Emit empty baked scripts. Useful to avoid possible
                             compile errors. 

replication-server

replication-server --help serve

replication-server --help listen

To start the server, you need to give it the location of the schema, like this:

replication-server serve --schema ../Assets/coherence/coherence.schema

In the example above we're running the server from the coherence-bin directory right at the root of your project.

You can also define other parameters like min-query-distance (the minimum distance the LiveQuery needs to move for the replicator to recognize a change), frequency, ip and port number.

replication-server serve --min-query-distance 10 --port 32001 --frequency 320 --schema "C:\Users\tadej\Desktop\work\coherence\gamejam-stellar\Assets\Schemas\stellar.schema"

persistence-client

persistence-client --help serve

General flags

--log-level=LOG-LEVEL-STRING

Log level

--log-file=LOG-FILE-STRING

Log output file

--panic-on-error

Enable/disable panic on error

Last updated

Was this helpful?