Skip to content

Installing

nahkd123 edited this page Jul 12, 2022 · 1 revision

This installing guide only shows what this Wiki editor believes is the best way to do, but you can try installing it in different way.

Install using Gradle (Wrapper)

This method is pretty easy, just clone the entire repository (use git clone https://github.com/MangoPlex/Multipacks.git if you have Git, or just download it as .zip file, but like, whoever want to do that?), open a terminal inside the repository folder, then type ./gradlew :multipacks-cli:installDist.

To confirm that you have installed Multipacks CLI using Gradle, try typing multipacks-cli in your terminal. If you see some generic "missing command" error, you might have to restart your terminal.

Updating Multipacks CLI is also pretty easy. If you cloned with git command, use git pull then use ./gradlew :multipacks-cli:installDist to install again.

Install by downloading Multipacks CLI

First time installation

  • Choosing a location that you less likely ever touch it (something like C:\mpcli or /home/username/.mpcli). We'll choose C:\mpcli for this installation guide.
  • Download Multipacks CLI archive on Releases page.
  • Extract all contents inside multipacks-cli.zip/multipacks-cli-VERSIONNUMBER/ (VERSIONNUMBER indicates the version of Multipacks CLI) to the folder that you've choosen (in this case, copy both bin/ and lib/ to C:\mpcli).
  • Add <choosen folder>/bin to the path environmental variable.

Adding to path environmental variable on Windows

  • On Windows 10+, you can just type "envir" inside the search bar, look for "Edit the system environmental variables" and click on it. On other versions, you'll have to find "System Properties".
  • Inside "Advanced" tab, click on "Environmental Variables..."
  • There are 2 sections that can have path: User variables and System variables. If you are planning on allowing all local users to use Multipacks CLI, continue with System variable, otherwise just go for User variables. We'll go with User variables for this guide.
  • Find Path under "Variable" column then click on it.
  • Click the "Edit..." button
  • Click "New" and type (or paste) <choosen folder>\bin. Since we've choosen C:\mpcli to store Multipacks CLI installation, we'll type C:\mpcli\bin.
  • Click "OK" across all opened windows to confirm changes.
  • Restart your terminal.

Updating Multipacks CLI

  • Download Multipacks CLI archive again
  • Extract all contents inside multipacks-cli.zip/multipacks-cli-VERSIONNUMBER to the folder that is storing previous version of Multipacks CLI (in this case, copy both bin/ and lib/ to C:\mpcli once again)
  • Restart your terminal