This is an rcon tool intended for big baller admins who operate a large portfolio of Rust servers. Every line you type gets sent to the server as an rcon command. Note that typing quit will terminate the server, not the rcon session! To disconnect from rcon, press Ctrl+D or Ctrl+C.
In the current working directory (from which you will run rconcli), configure all your servers in a servers.yml file:
servers:
- id: london
host: london.rustgalaxy.com
port: 28016
password: unbreakable3
- id: paris
host: paris.rustgalaxy.com
port: 28016
password: unbreakable3
- id: newyork
host: newyork.rustgalaxy.com
port: 28016
password: unbreakable3
Server to connect to is specified as the ID from servers.yml, and you can even use the shortest unique prefix!
$ ./rconcli s
Server lookup error: Ambiguous ID prefix. Multiple matches found: seoul, singapore, sweden, sydney
$ ./rconcli sin
Connecting to singapore.rustgalaxy.com:28016...
Connected
Now try typing status and pressing enter:
status
hostname: RustGalaxy Nexus Singapore
version : 2594 secure (secure mode enabled, connected to Steam3)
map : Procedural Map
players : 0 (100 max) (0 queued) (0 joining)
id name ping connected addr owner violation kicks entityId
Run with --help to see:
$ ./rconcli --help
Usage: rconcli [OPTIONS] <SERVER_ID_OR_PREFIX>
Arguments:
<SERVER_ID_OR_PREFIX> Server ID (or prefix) to connect to
Options:
-f, --file <FILE> YAML file containing the server list [default: servers.yml]
-h, --help Print help
-V, --version Print version