Skip to content

CLI for interacting with the server #166

@aster-void

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

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