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:

Root User Reconciliation

Every time a Core starts, it reconciles the configured --username / --password against the existing cluster state. The configured credentials are the source of truth: the Core makes the state match config, rather than asking the operator to log in and update things by hand.

The behavior depends on what already exists on disk:

Recovering a forgotten root password

Because the configured password is the source of truth, you can recover a forgotten root password by editing the Core’s configuration (config file, environment variable, or --password flag) and restarting the Core. The stored password will be rotated on startup. Non-root users rotate their passwords through the API as normal — only the root user’s password is governed by configuration.

Demoted users

When a username change demotes the previous root user, that user keeps their Owner role and their original credentials. They can still log in with full permissions; they just no longer hold the immutable root-user flag. To fully remove them, an Owner can delete the demoted user through the API.

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.56.4

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