Allow Forge Installer to install Minecraft with Forge via command-line.
Fork customized for HeadlessMc, adds support for versions < 1.13.
- Download Forge installer for Minecraft here.
- Download ForgeCLI jar file at the release page.
- Run the below command in terminal:
3 arguments are required.
java -jar <ForgeCLI.jar> --installer <forge-installer.jar> --target <install-location>
--installer
: Forge Installer jar file
ex) forge-1.16.5-36.2.2-installer.jar--target
: Minecraft Install Location
ex) %appdata%.minecraft