CLI Reference

Unified command-line interface for Hytale Docker

CLI Reference

Hytale Docker provides a unified hytale CLI for authentication, server commands, updates, and mods.

docker exec -it hytale-server hytale <command> [subcommand] [options]

Commands

CommandDescription
hytale authAuthentication management
hytale cmdSend commands to running server
hytale updateCheck and manage updates
hytale modsCurseForge mod management
hytale helpShow help

auth — Authentication

Manage OAuth tokens, sessions, and profiles.

Subcommands

CommandDescription
auth loginStart device code authentication
auth refreshRefresh OAuth and session tokens
auth sessionCreate a new game session
auth profile listList available profiles
auth profile select <n>Select profile by number or UUID
auth statusShow current token status
auth exportExport tokens as environment variables
auth logoutClear all stored tokens

Examples

# Check token status
docker exec -it hytale-server hytale auth status

# Re-authenticate
docker exec -it hytale-server hytale auth login

# List profiles
docker exec -it hytale-server hytale auth profile list

# Select profile #1
docker exec -it hytale-server hytale auth profile select 1

# Export tokens as JSON
docker exec -it hytale-server hytale auth export --json

# Clear all tokens
docker exec -it hytale-server hytale auth logout

Status Output

Token Status:
─────────────────────────────────────────
OAuth:
  Access Token: Valid (expires in 55 min)
  Refresh Token: Valid (expires in 29 days)

Session:
  Session Token: Valid (expires in 58 min)
  Identity Token: Valid

Profile:
  Selected: PlayerName (uuid-here)
─────────────────────────────────────────

cmd — Server Commands

Send commands to the running Hytale server.

docker exec -it hytale-server hytale cmd <command>

Examples

# Show available commands
docker exec -it hytale-server hytale cmd /help

# List online players
docker exec -it hytale-server hytale cmd /list

# Stop the server gracefully
docker exec -it hytale-server hytale cmd /stop

The server must be running. If you get "Server not running", check docker compose ps.


update — Update Management

Check for updates and schedule updates for restart.

Subcommands

CommandDescription
update checkCheck if updates are available
update scheduleSchedule update for next restart
update cancelCancel scheduled update
update statusCheck if an update is scheduled

Examples

# Check for updates
docker exec -it hytale-server hytale update check

# Check with JSON output
docker exec -it hytale-server hytale update check --json

# Schedule an update (for AUTO_UPDATE=false)
docker exec -it hytale-server hytale update schedule

# Check schedule status
docker exec -it hytale-server hytale update status

# Cancel scheduled update
docker exec -it hytale-server hytale update cancel

Check Output

Update Status:
──────────────────────────────────────────────────
✅ Downloader: v1.2.3 (up to date)
⚠️  Server: 2026.01.15-abc123 → 2026.01.18-def456
──────────────────────────────────────────────────

Run 'hytale update schedule' to schedule the update
Or set AUTO_UPDATE=true to enable automatic updates

With AUTO_UPDATE=true, updates apply automatically on restart. The schedule command is for manual updates when AUTO_UPDATE=false.


mods — CurseForge Mods

Manage CurseForge mods installed on the server.

Subcommands

CommandDescription
mods listList installed CurseForge mods
mods update <projectId>Force update a specific mod

Examples

# List installed mods
docker exec -it hytale-server hytale mods list

# Force update a specific mod
docker exec -it hytale-server hytale mods update 123456

Requires CF_API_KEY environment variable. See CurseForge Mods.


Options

OptionDescription
-h, --helpShow help for command
--jsonOutput JSON (where supported)

Quick Reference

# Auth
hytale auth status
hytale auth login
hytale auth profile list
hytale auth profile select 1

# Server Commands
hytale cmd /help
hytale cmd /list

# Updates
hytale update check
hytale update schedule

# Mods
hytale mods list
hytale mods update 123456

Next Steps

On this page