itzg/rcon-cli
About
A little RCON cli based on james4k's RCON library for golang
Developer ToolsMeasured star growth
- in 24h
- +1
- in 7 days
- +1
- in 15 days
- +4
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalA little RCON cli for Minecraft and other game servers that speak the Source RCON protocol.
Installation
Download the appropriate binary for your platform from the latest releases
On UNIX-y platforms, set the binary to be executable - done!
If you have Go you could also simply go install github.com/itzg/rcon-cli@latest && rcon-cli -h.
Usage
rcon-cli is a CLI for attaching to an RCON enabled game server, such as Minecraft.
Without any additional arguments, the CLI will start an interactive session with
the RCON server. Send the keyword "exit" to close the session. The CLI will exit.
If arguments are passed into the CLI, then the arguments are sent
as a single command (joined by spaces), the response is displayed,
and the CLI will exit.
Usage:
rcon-cli [flags] [RCON command ...]
Examples:
rcon-cli --host mc1 --port 25575
rcon-cli --port 25575 stop
RCON_PORT=25575 rcon-cli stop
Flags:
--config string config file (default is $XDG_CONFIG_HOME/rcon-cli/config.yaml or $HOME/.rcon-cli.yaml)
--host string RCON server's hostname (default "localhost")
--password string RCON server's password
--port int Server's RCON port (default 25575)
--abort-on-ctrl-c=true|false If Ctrl-c should abort or just clear line, defaults to true (abort)
Configuration
You can preconfigure rcon-cli to use the arguments you want by default with a config file. rcon-cli uses the first one it finds of:
- the file given with
--config /path/to/the/config.yaml rcon-cli/config.yamlin your user config directory:$XDG_CONFIG_HOMEor~/.configon Linux,~/Library/Application Supporton macOS,%AppData%on Windows.rcon-cli.yamlin your home folder, then in/dataand/server
Example of a .rcon-cli.yaml file:
host: mydomain.com
port: 12345
password: mycustompassword
That way executing rcon-cli without arguments would connect to mydomain.com:12345 with the password mycustompassword by default.
Explore related projects
Loading…