Skip to content

CLI Arguments

The server accepts arguments when launched via java -jar HytaleServer.jar [options].

Terminal window
java -jar HytaleServer.jar --bind 5520 --assets ../HytaleAssets
FlagTypeDescription
--helpflagPrints help and exits
--versionflagPrints version, patchline, and environment info, then exits
--bareflagSkips worlds, networking, and directory creation. All mods still load.

--bare disables core server side effects:

  • No worlds are loaded or created
  • No network port binding
  • No directory creation (player data, resource storage, mods/ folder)

The server still runs the full mod lifecycle up through setup(). When combined with --shutdown-after-validate, the server exits before start() — so mods only go through the preLoad and setup phases.

FlagTypeDefaultDescription
-b, --bindhost:port0.0.0.0:5520Address to listen on
-t, --transportenumQUICNetwork transport type: QUIC or TCP
--force-network-flushtrue/falsetrueForces network flush each tick

The --bind flag accepts multiple formats:

  • --bind 0.0.0.0:5520 — full address
  • --bind 5520 — port only, binds all interfaces
  • --bind myhost.example.com — hostname only, uses port 5520
  • --bind 0.0.0.0:5520,0.0.0.0:5521 — multiple addresses (comma-separated)
FlagTypeDefaultDescription
--auth-modeenumauthenticatedauthenticated, offline, or insecure. See Authentication Modes for details.
--session-tokenstringSession token for the Session Service API
--identity-tokenstringIdentity token (JWT)
FlagTypeDefaultDescription
--assetspath../HytaleAssetsAsset directory or zip file
--modspathsAdditional mod directories (comma-separated)
--early-pluginspathsEarly plugin directories (comma-separated, requires --accept-early-plugins)
--accept-early-pluginsflagAcknowledges that early plugins are unsupported and may cause instability
--disable-asset-compareflagDisables asset comparison
--disable-file-watcherflagDisables hot-reload file watching
FlagTypeDescription
--validate-assetsflagExit with error if any assets are invalid
--validate-prefabsoptionsExit with error if any prefabs are invalid. Optional validation options: PHYSICS, BLOCKS, BLOCK_STATES, ENTITIES, BLOCK_FILLER (comma-separated).
--validate-world-genflagExit with error if default world gen config is invalid
--shutdown-after-validateflagShut down after validation completes. Also sets log level to WARNING.
--generate-schemaflagGenerate JSON schemas into the assets directory, then exit

These flags are designed for CI pipelines and tooling:

Terminal window
# validate assets in CI
java -jar HytaleServer.jar \
--bare \
--validate-assets \
--shutdown-after-validate \
--disable-sentry \
--auth-mode offline
FlagTypeDescription
--universepathUniverse directory (where worlds are stored)
--world-genpathWorld generation config directory
FlagTypeDescription
--disable-cpb-buildflagDisables building compact prefab buffers
--prefab-cachepathPrefab cache directory for immutable assets
FlagTypeDefaultDescription
--backupflagEnables periodic backups
--backup-dirpathBackup directory (required if --backup is set)
--backup-frequencyinteger30Backup interval in minutes
--backup-max-countinteger5Maximum number of backups to keep
FlagTypeDescription
--singleplayerflagRuns in singleplayer mode
--owner-namestringOwner player name
--owner-uuidUUIDOwner player UUID
--client-pidintegerClient process ID (used to monitor the client process)
FlagTypeDescription
--migrationsname=pathMigrations to run (comma-separated name=/path pairs)
--migrate-worldsstringsWorlds to migrate (comma-separated, only available when --migrations is set)
FlagTypeDescription
--loglevelsSet logger levels. --log WARNING for global, or --log com.foo:FINE,com.bar:WARNING per-package. Uses java.util.logging.Level names.
--boot-commandstringsCommands to run on boot (comma-separated, executed synchronously in order)
--allow-opflagAllows the self-op command
--event-debugflagEnables event debug logging
--disable-sentryflagDisables Sentry error reporting