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
| Command | Description |
|---|---|
hytale auth | Authentication management |
hytale cmd | Send commands to running server |
hytale update | Check and manage updates |
hytale mods | CurseForge mod management |
hytale help | Show help |
auth — Authentication
Manage OAuth tokens, sessions, and profiles.
Subcommands
| Command | Description |
|---|---|
auth login | Start device code authentication |
auth refresh | Refresh OAuth and session tokens |
auth session | Create a new game session |
auth profile list | List available profiles |
auth profile select <n> | Select profile by number or UUID |
auth status | Show current token status |
auth export | Export tokens as environment variables |
auth logout | Clear 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 logoutStatus 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 /stopThe 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
| Command | Description |
|---|---|
update check | Check if updates are available |
update schedule | Schedule update for next restart |
update cancel | Cancel scheduled update |
update status | Check 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 cancelCheck 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 updatesWith 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
| Command | Description |
|---|---|
mods list | List 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 123456Requires CF_API_KEY environment variable. See CurseForge Mods.
Options
| Option | Description |
|---|---|
-h, --help | Show help for command |
--json | Output 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 123456Next Steps
- CurseForge Mods — Auto-sync mods
- Configuration — Environment variables
- Troubleshooting — Common issues