Swiftpack.co -  ezfe/minecraft-jar-command as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
Download and run Minecraft from the command line on Apple M1 computers
.package(url: "https://github.com/ezfe/minecraft-jar-command.git", from: "v2.3.3")

Apple M1 Minecraft Launcher

For Minecraft 1.17.1, run the following command:

minecraft-jar-command --version 1.17.1-arm64 --java-executable /Library/Java/JavaVirtualMachines/arm-zulu-16.jre/Contents/Home/bin/java

With the path pointing to an ARM-native Java 16 runtime or JDK. In my case, I used the Azul Java 16 ARM JRE for macOS.

Download and run Minecraft without the Launcher.


This package does not have a visual interface and must be run from the command line. In the future I plan on releasing a version with an interface, however there are technical challenges with this that are not worth the complexity at this time.

  1. Install Homebrew and run brew install ezfe/tap/minecraft-jar-command
  2. Run minecraft-jar-command to launch the game!
  3. You will probably need to login first – to do this, run the login command:
    minecraft-jar-command login <your email> <minecraft password> --save-credentials
    • Your password will not be saved, only your access token - this is how the regular Minecraft launcher logs you in as well
    • If you have any special characters, you may need to put quotes around your email or password. You can do this even if you don't have special characters, to be sure.


  1. You can change the game version - the latest release version will be used by default. Only some versions are available, you can view the complete list here.
    minecraft-jar-command run --version "21w17a-arm64"
  2. To get the latest snapshot version, run it with the --snapshot flag:
    minecraft-jar-command run --snapshot
  3. You can change the game directory and working directory (where the supporting assets are downloaded). Right now, the game directory is set to the default Minecraft directory, and the working directory defaults to a temporary one to prevent interference with the default Minecraft launcher. Refer to minecraft-jar-command help run to see these commands.

Important: Minecraft snapshots 21w18a and later are not available. Unfortunately, Java 16 is not yet working and I have not yet identified a fix.


I will do my best to release new Minecraft versions quickly - this will happen automatically, no need to do anything to fetch it.

To receive updates about this script and new versions, click "Watch > Custom > Releases" to get notifications.


Stars: 25
Last commit: 5 days ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Release Notes

Latest Snapshot Flag and Default Game Directory
24 weeks ago

This release introduces a --snapshot flag that will use the latest snapshot version instead of the latest release version. It also changes the game directory to properly default to ~/Library/Application Support/minecraft.

If you had games in the other directory, it's printed out when you start the script still and you can copy them over.

I've uploaded a binary for this version, but I recommend using Homebrew: brew install ezfe/tap/minecraft-jar-command

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API