Skip to content

How To Use

Sebastian H edited this page Feb 1, 2022 · 1 revision

How To Use

Install

> export MSDVERSION="1.2.0"
sudo curl -Lo /usr/local/bin/msdcli "https://github.com/lyssar/msdcli/releases/download/${MSDVERSION}/msdcli-amd64"
sudo chmod ugo+x /usr/local/bin/msdcli

General command overview

general

> msdcli -h
msdcli <server|modpack> ...args:
  -h
    	Display this help
  server
      	Install a minecraft server with. Available are [vanilla|fabric|forge|papermc|spigot] as type.
  modpack
      	Download curseforge modpack either by given args or with tty

server

> msdcli server -h
Usage of server:
  -mcversion string
    	Minecraft version.
  -serverVersion string
    	Server version eq. version of your server type.
  -type string
    	Server type. [vanilla|fabric|forge|papermc|spigot]

modpack

> msdcli modpack -h
Usage of modpack:
  -packageId int
    	Modpack ID from curseforge
  -serverPackageFileID int
    	File ID to download (excplicit server version of a package)

How to install a Vanilla server

> msdcli server
Use the arrow keys to navigate: ↓ ↑ → ← 
? Select server type: 
  ▸ Vanilla
    Forge
    Fabric
    Spitgot
    PaperMC
> msdcli server
✔ Vanilla
You choose "Vanilla"
Use the arrow keys to navigate: ↓ ↑ → ← 
Select Minecraft version:?
  ▸ 1.18.1
    1.18
    1.17.1
    1.17
↓   1.16.5
> msdcli server
✔ Vanilla
You choose "Vanilla"
✔ Mincraft Version: 1.18.1
Downloading minecraft vanilla version:  1.18.1
Loading server.jar
Vanilla server installed. Please create and configure your server.properties file before starting

> ls -al
insgesamt 45252
drwxrwxr-x 2 shens shens     4096 Feb  1 17:28 .
drwxrwxr-x 8 shens shens     4096 Feb  1 17:27 ..
-rw-r--r-- 1 shens shens        9 Feb  1 17:28 eula.txt
-rw-rw-r-- 1 shens shens 46324407 Feb  1 17:28 server.jar

TTY less

> msdcli server -type vanilla -mcversion 1.18.1
Downloading minecraft vanilla version:  1.18.1
Loading server.jar
Vanilla server installed. Please create and configure your server.properties file before starting

> ls -al
insgesamt 45252
drwxrwxr-x 2 shens shens     4096 Feb  1 17:30 .
drwxrwxr-x 8 shens shens     4096 Feb  1 17:27 ..
-rw-r--r-- 1 shens shens        9 Feb  1 17:30 eula.txt
-rw-rw-r-- 1 shens shens 46324407 Feb  1 17:30 server.jar

How to install a Forge server

How to install a Fabric server

not implemented yet

How to install a Spigot server

not implemented yet

How to install a PaperMC server

not implemented yet