minecraft
launches the Minecraft game or runs a Minecraft server
TLDR
SYNOPSIS
minecraft-launcher [options]java [jvm-options] -jar server.jar [server-options] [nogui]
DESCRIPTION
minecraft-launcher is the official launcher for Minecraft: Java Edition. It handles Microsoft account sign-in, installation profiles, game versions, mod loaders and a bundled Java runtime, then starts the game client.The dedicated server is a separate server.jar downloaded from minecraft.net and run directly with Java. On first start it writes eula.txt, which must be edited to eula=true before the server will run. Settings live in server.properties in the working directory.
PARAMETERS
-w, --workDir DIR
Launcher working directory (location of the .minecraft data).-l, --lockDir DIR
Restrict the launcher installation to the given directory.--clean
Delete the game and runtime directories from the working directory.--disableGPU
Disable GPU acceleration in the launcher UI.-h, --help
Display launcher help.
SERVER OPTIONS
nogui, --nogui
Do not open the server management window.--port PORT
Listen port (default 25565, overrides server.properties).--world NAME
World folder name to load.--universe DIR
Directory that contains the world folders.--initSettings
Create server.properties and eula.txt, then exit.--forceUpgrade
Convert all chunks of the world to the current game version.--eraseCache
Erase cached data during a forced upgrade.--safeMode
Load the vanilla data pack only.--bonusChest
Generate a bonus chest in new worlds.--demo
Run the server in demo mode.
CAVEATS
The game requires a purchased Microsoft account. The server needs a matching Java version; recent releases require Java 21 or newer. Game options such as --gameDir or --demo are passed to the game client by the launcher and are not launcher options. Allocate memory with -Xmx; too little causes lag and out-of-memory crashes.
HISTORY
Minecraft was created by Markus "Notch" Persson in 2009 and is developed by Mojang Studios, owned by Microsoft since 2014.
