MinecraftCLI is a command line application to join Minecraft servers with a valid Mojang or Legacy account, without needing the full Minecraft client. The application has several functions as described below.
- Stack
- Mcrypt
stack build
stack exec -- MinecraftCLI
. Alternativelystack install
from project root to install to~/.local/bin
.
Note: To locate MinecraftCLI, execute cd $(stack path --dist-dir)/build/MinecraftCLI
(bash specific)
Run the binary and a % prompt will be displayed. Enter any of the following commands and use quit to exit.
Display all commands:
help
Show available commands:
profiles help
List all profiles:
profiles list
Add a new profile:
profiles new <login or Mojang account/email>
Delete a profile:
profiles delete <profile name>
Show available commands:
servers help
List all servers:
servers list
Add a new server:
servers new <name> <address: IP or DNS resolvable URL>
Delete a server:
servers delete <server name>
Connect to a server specifying a user profile and a server. The profile name must match one of those listed with profiles list
and server name must match the server name that servers list
displays.
Connect to a server:
connect <profile> <server>
Display the Minecraft dimension that a player account is in. e.g. Overworld
dimension