FFFF CLI for interacting with the server · Issue #166 · Infinidoge/nix-minecraft · GitHub
[go: up one dir, main page]

Skip to content

CLI for interacting with the server #166

Open

Description

@aster-void

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

Activity

  1. changed the title [-]CLI for interacting with the tmux session[/-] [+]CLI for interacting with the server[/+] on Aug 24, 2025
  2. theNoof commented on Nov 3, 2025

    @theNoof

    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.

  3. wawwior commented on Sep 9, 2026

    @wawwior

    each server exposes a tmux socket, see here, those can simply be attached to with tmux, no cli needed. To start, stop, pause the entire service just use systemctl. Listing running servers can be done with systemctl too, since all servers run under a special user iirc, otherwise grep for minecraft. This whole cli thing seems overkill.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0