VERSION environment variable controls which Minecraft server version is installed and run. This variable is case-sensitive and supports multiple version types.
Version Types
TheVERSION variable accepts the following values:
LATEST- Latest stable release (default)SNAPSHOT- Latest snapshot version- Specific version number (e.g.,
1.7.9,25w35a,26.1,26.1-snapshot-1) - Alpha/beta versions (e.g.,
b1.7.3)
When using alpha or beta versions, the server download might not exist for all versions.
Setting the Version
Automatic Updates
When usingLATEST or SNAPSHOT, the server automatically upgrades when a newer version is available:
Version Examples
| Version Type | Example Value | Description |
|---|---|---|
| Latest release | LATEST | Most recent stable version |
| Latest snapshot | SNAPSHOT | Most recent development snapshot |
| Specific release | 1.20.4 | Exact release version |
| Snapshot | 25w35a | Specific snapshot build |
| Modded version | 26.1 | Forge/Fabric version number |
| Beta version | b1.7.3 | Classic beta version |
Managing Old Server Jars
Over time, older versions of the server jar may accumulate in the
/data directory. It is safe to remove these old jar files manually.