How to Download & Install Forge for Minecraft Client & Server (2026)
A guide on how to download, install, and run Forge for both the Minecraft client and server, including instructions for using the GUI installer and command-line method.
Forge is a classic modding platform that has kept the modding scene in Minecraft alive for many years.
Table of Contents
Requirements
- A computer running Windows 10 (or later) or Server, or Linux.
- At least 1 GB of free storage space.
- If you're using a hosting provider for your server, make sure they support custom modded servers and allow you to upload custom files.
- Java
Downloading
The first thing you'll want to do is download the Forge installer. This process is fairly simple.
- Download the version of Forge you want from their website here (downloads page).
- Ensure to select the correct version of Minecraft and Forge.
- Click the Installer download button on the page.


- Open the folder or directory where the installer was downloaded.
- If this is for a server on Windows, you can create a new folder for your server that you'll point the GUI installer to later.
On Windows, your file explorer should look like this, with a file named something like forge-{VERSION}-installer.jar.

Running & Installing
Through the GUI Installer
If you intend to run the installer through the GUI, simply double-click the installer JAR file. This will open the Forge installer interface.

Client Installation
If you're installing Forge for your client, we recommend creating a new installation profile through the Minecraft Launcher to keep things organized. This way, you can easily switch between different versions of Minecraft and Forge without affecting your main installation.
In order to do this, please follow these steps:
- Open the Minecraft Launcher and click on the Installations tab at the top.
- Click the New installation button to create a new installation profile.

- Fill out the installation details:
- Name (1): Give your installation a name (e.g., "Forge Test 1.20.1").
- Version (2): Select the version of Minecraft that matches the Forge version you downloaded.
- Game Directory (3): You can leave this as default or specify a custom directory if you want to keep it separate from your main Minecraft installation.
- Click the Install button to create the new installation profile.
- You may want to uncheck the Launch after Install option if you want to install Forge first before launching the game.

- You may want to uncheck the Launch after Install option if you want to install Forge first before launching the game.
After creating a new installation profile, you can proceed with the Forge installation:
- Select the Install Client option on the left side of the installer.
- If necessary, change the installation directory to the location of your Minecraft installation.
- By default, it should point to the correct location.
- On Windows, this is typically:
C:\Users\{USER}\AppData\Roaming\.minecraft
- Click the OK button to start the installation process.

- Wait for the installer to download and set up Forge. This may take a few minutes depending on your internet speed and computer performance.
- Once the installation is complete, you can launch Minecraft using the Forge profile that was created during the installation process.
Server Installation
The server installation process is similar, but it has the option to create a server setup instead of installing into an existing Minecraft installation.
- Select the Install server option
- Change the Installation Directory to the folder you created for your server earlier
- The folder must be empty before proceeding with the installation!
- Click the OK button to start the installation process.

This will download the necessary server files and set up Forge for your server.

Once the installation is complete, you can start your server using the generated run.bat file on Windows or run.sh on Linux.

WARNING: When you initially start the server, the server will exit stating you need to accept the EULA. You can do this by opening the eula.txt file and changing eula=false to eula=true. After accepting the EULA, you can restart the server, and it should run with Forge installed.
Through the Command Line (Linux/PowerShell)
If you prefer to use the command line, you can run the installer using Java. This method is especially useful for Linux users or those who are comfortable with terminal commands.
Determine Correct Flags to Pass
Before running the installer through the command-line, let's quickly go over the different flags you can pass to the installer to specify what you want to install.
Client Installation
For a client installation, you will want to pass the following flags (replacing {DIR_NAME} with the actual directory name of your Minecraft installation if you want to specify it, otherwise it will default to the correct location):
--installClient {DIR_NAME}
Server Installation
For a server installation, you will want to pass the following flags (replacing {DIR_NAME} with the actual directory name of your server folder):
--installServer {DIR_NAME}
Running the Installer
- Open your terminal (Linux) or PowerShell (Windows).
- On Windows, you can right-click in the folder where the installer is located and select Open in Terminal or Open in PowerShell to quickly navigate to the correct directory.
- Navigate to the directory where the Forge installer JAR file is located using the
cdcommand.- For example:
- Windows:
cd C:\Users\{USER}\Downloads - Linux:
cd /home/{USER}/Downloads
- Windows:
- For example:
- Run the installer using the following command:
# On Windows java -jar .\forge-{VERSION}-installer.jar {FLAGS} # On Linux java -jar ./forge-{VERSION}-installer.jar {FLAGS}- Replace
{VERSION}with the actual version number of the installer you downloaded. - Replace
{FLAGS}with the appropriate flags that you determined in the previous section based on whether you're installing for the client or server.
- Replace
- Follow the prompts in the terminal to complete the installation process for either the client or server, similar to the GUI method.
You can now start the server using the generated run.bat file on Windows or run.sh on Linux, and launch Minecraft using the Forge profile that was created during the installation process.
Notes
Automatic Restarts
If you're looking to set up automatic restarts for your server, you can create a simple wrapper script that runs the server and restarts it if the main server script crashes or stops. Here's an example of how you can do this on both Windows and Linux.
Windows (Batch Script)
Create a new file called start_server.bat in the same directory as your server files and run.bat with the following contents:
@echo off
:start
echo Starting Minecraft Forge Server...
title Minecraft Forge Server (Auto-Restart)
:: Call the official forge run script
call run.bat
echo.
echo Server stopped or crashed! Restarting in 10 seconds...
echo Press Ctrl+C to cancel the auto-restart loop.
timeout /t 10
goto start
Linux (Bash Script)
Create a new file called start_server.sh in the same directory as your run.sh and server files with the following contents:
#!/bin/bash
while true; do
echo "Starting Minecraft Forge Server..."
echo "Press Ctrl+C to stop the server and exit the auto-restart loop."
echo "---------------------------------------------"
# Call the official forge run script
./run.sh
echo "Server stopped or crashed! Restarting in 10 seconds..."
sleep 10
done
Using Screen
If you're running your server on Linux, you can use the screen command to run your server in a detachable session. This allows you to start the server, detach from the session, and keep it running in the background even if you close your terminal.
You can start the server using screen with the automatic restart script above like this:
screen -S mc-forge ./start_server.sh
If you'd like to detach from the screen session while keeping the server running, you can press Ctrl+A followed by D. To reattach to the session later, use:
screen -r mc-forge
NOTE: If only one session is running, you can simply use screen -r to reattach without specifying the session name.
See Also
- Forge Website
- Forge GitHub
- Pterodactyl - A popular, free, and open source game server control panel that allows you to easily manage your self-hosted Minecraft servers (with Forge support!).
Conclusion
Forge is a fantastic modding platform that has powered the Minecraft modding scene for many years. Whether you're looking to install it for your client or set up a modded server, the installation process is straightforward and can be done through either a GUI installer or the command line. With Forge, you can enjoy a wide variety of mods and custom content in Minecraft.
If you have any questions or are looking for a modding community to be a part of, consider joining our Discord server!
Guides we create are always open to edits and improvements, so if you have any suggestions or notice any issues, feel free to contribute by creating a pull request on our GitHub repository!
Happy modding!