A minimal command line Minecraft launcher.
Make sure you have Go installed.
To install, run:
go install github.com/telecter/cmd-launcher@main
- Clone this repository with
git
- In the source directory, run
go build .
Run the help
subcommand to get the usage information.
To choose the version of the game to run, use the start <version>
subcommand.
cmd-launcher start 1.21
Important
This launcher is not tested for versions < 1.19. It may not work, mainly because this launcher does not yet support installing native libraries.
Without any options, the launcher will automatically attempt to use online mode. As part of Microsoft's OAuth2 flow, the default web browser will be opened to complete the authentication.
If you want to use offline mode, just pass the -u, --username <username>
flag before the version
to set your username and the game will automatically launch in offline mode.
Currently, only Fabric and Quilt are supported. Use the -l, --loader
flag to use them.
cmd-launcher start -l fabric 1.21