Back to services

RconCli

CLI for executing queries on a remote Valve Source dedicated server using the RCON Protocol.

View alternatives to RconCli
Suggest edit
Open source
Self-hostable
MIT
Recent reviews

Alternatives

Tech stack

No tech stack added yet. Sign in to suggest some

Note: We couldn't fetch the official site (the GitHub repository page), so the following is compiled from what we already know and only includes information we're reasonably sure of. For exact parameters, supported protocols, and versions, please refer to the repository README.

Overview

RconCli is an open-source command-line tool from the gorcon project, written in Go. It connects to game servers over the RCON (Remote Console) protocol, letting administrators run server commands directly from the terminal without entering the game client, such as listing online players, broadcasting messages, kicking or banning players, and saving the world.

Key Features

  • Remote command execution: Connect to a game server that supports RCON, run administrative commands, and get the results back.
  • Multiple protocols: Besides standard Source RCON, it also supports variant protocols used by some games, such as Telnet and WebRCON.
  • Single-command mode: Specify the server address, password, and the command to run as command-line arguments. The tool exits once the command finishes, which makes it easy to use in scripts.
  • Interactive mode: If you don't specify a command, it opens an interactive session where you can enter multiple commands in a row.
  • Config file and multiple environments: Store the connection details for multiple servers in a config file and switch between them by environment name, so you don't have to type the address and password every time.
  • Logging: Write executed commands and their responses to a log, which is handy for auditing and troubleshooting.

Target Users

  • Administrators who self-host or operate game servers (such as Minecraft or Source engine games)
  • Operations staff who need to manage servers automatically with scripts or scheduled tasks
  • Users who want to manage servers in environments without a graphical interface

Core Strengths

  • Single file, cross-platform: The executable compiled by Go has no extra runtime dependencies and runs on Linux, Windows, and macOS.
  • Lightweight: It's purely command-line with a small resource footprint, making it well suited to servers and containers.
  • Easy to automate: It works with shell scripts, cron jobs, and CI/CD pipelines, for example for scheduled saves, scheduled announcements, or notifying players before a restart.

Installation and Usage

  1. Download the prebuilt binary for your system from the Releases page of the GitHub repository and unpack it, and it's ready to use. You can also build it from source yourself.
  2. Basic usage: On the command line, specify the server address, the RCON password, and the command to run, for example to query the list of online players.
  3. If you frequently connect to the same set of servers, you can store the connection details in a config file and call them by environment name.

For the exact parameter names and config file format, please refer to the repository README.

Technical Requirements

  • The game server must have RCON (or the corresponding remote control protocol) enabled, with the port and password configured.
  • The machine running the tool must be able to reach the server's RCON port over the network.

Notes

  • An RCON password grants extensive privileges. Avoid writing it in plain text in shared scripts, and restrict the RCON port so it's only open to trusted networks.
  • RCON implementations and available commands differ from game to game, so check the documentation for the specific game for its commands.