ReferenceCoreCLI Reference

CLI Reference

Find information about the Synnax Core CLI.

Start

The start command starts the Synnax Core.

Examples

Starting a Core

We can use the i and m flags to start a Core in insecure mode with an in-memory data store:

synnax start -l localhost:9090 -im

Flags

Environment Variable Equivalents

The following environment variables can be used in place of the corresponding flags. Command line flags will take precedence over environment variables.

Configuration Files

Synnax will also read configuration files in JSON, TOML and YAML formats. The values set in these configuration files take the lowest precedence and will be overridden by any environment variables or command line flags.

By default, Synnax will look for a configuration file at ~/.synnax.yaml. You can specify a different configuration file using the --config flag or the SYNNAX_CONFIG environment variable.

Here are example configuration files in various formats:

Version

The version command prints the installed version of the Synnax database.

Examples

If you run this command:

synnax version

You’ll see output similar to the following:

Synnax v0.51.2

Flags

This command has no flags.

Service (Windows Only)

The service command manages Synnax as a Windows Service. These commands are only available on Windows and require administrator privileges.

When running as a Windows Service, Synnax will:

  • Start automatically when Windows boots (if configured)
  • Receive proper shutdown signals for graceful termination
  • Log events to the Windows Event Log
  • Automatically restart on failure

service install

Installs Synnax as a Windows Service. Server configuration flags are stored in the service configuration and used when the service starts.

Examples

Install with default settings (auto-start enabled, insecure mode):

synnax service install --insecure

Install with custom data directory and listen address:

synnax service install --listen 0.0.0.0:9090 --data C:\ProgramData\Synnax\data --insecure

Install without auto-start:

synnax service install --auto-start=false --insecure

Flags

service uninstall

Removes the Synnax Windows Service. This will stop the service if it is running and remove it from the system.

synnax service uninstall

service start

Starts the installed Synnax Windows Service.

synnax service start

service stop

Stops the running Synnax Windows Service.

synnax service stop