nix-minecraft icon indicating copy to clipboard operation
nix-minecraft copied to clipboard

CLI for interacting with the server

Open aster-void opened this issue 4 months ago • 1 comments

the simplest implementation will be a bash

Proposed API

# not decided on how to implement it, using env vars to pass the information? or list /srv/minecraft?
minecraftctl list # list available instances with their status

# socket interaction
minecraftctl send <instance> <command> # send command to the tmux session
minecraftctl tail <instance> [-f] # tail logs, with optional follow flag

# systemd management
minecraftctl status <instance> # show status of the instance
minecraftctl stop <instance> # pause the instance
minecraftctl start <instance> # start the paused instance
minecraftctl restart <instance> # restart it

aster-void avatar Aug 24 '25 06:08 aster-void

would be also cool if that would include a way to execute commands (like rcon maybe?) and remote functionality (maybe using ssh?)

just ideas though.

theNoof avatar Nov 03 '25 18:11 theNoof