Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
R

rcon-cli

> 开发工具
Open source

RCON client for executing queries on game server.

673 stars0 likes3 views
WebsiteGitHub

About

RCON client for executing queries on game server.

rcon-cli

CLI for executing queries on a remote Source dedicated game server, using the RCON protocol.

Supported Games

  • 7 Days to Die (add -t telnet to rcon-cli args)
  • ARK: Survival Evolved
  • Avorion
  • Conan Exiles
  • Counter-Strike: Global Offensive
  • Factorio
  • Minecraft
  • Project Zomboid
  • Rust (add +rcon.web 0 to the args when starting the server or add -t web to rcon-cli args)
  • Team Fortress 2
  • V Rising
  • Palworld

Open pull request if you have successfully used a package with another game with rcon support and add it to the list.

Installation

Download the binary for your platform from the latest releases

See Changelog for release details

Docker

bash
docker pull outdead/rcon

Usage

…

Rcon CLI can be run in two modes - in the mode of a single query and in the mode of reading the input stream

Single mode

Server address, password and command to server must be specified in flags at startup. Example:

bash
./rcon -a 127.0.0.1:16260 -p mypassword command

It is possible to send several commands in one request. Example:

bash
./rcon -a 127.0.0.1:16260 -p mypassword command "command with several words" 'command "with double quotes"'

If commands passed, they sent in a single mode. The response displayed, and the CLI will exit.

Interactive input stream mode

To run CLI in interactive mode run rcon without commands. Example:

bash
./rcon -a 127.0.0.1:16260 -p mypassword

Use ^C to terminate or type command :q to exit.

In Docker

bash
docker run -it --rm outdead/rcon ./rcon [options] [commands...]

You can add your config file as volume:

bash
docker run -it --rm \
      -v /path/to/rcon-local.yaml:/rcon.yaml \
      outdead/rcon ./rcon -c rcon.yaml -e default players

Configuration file

For more convenient use, the ability to create the rcon.yaml configuration file provided. You can save the host and port of the remote server and its password. If the configuration file exists, and the default block filled in it, then at startup the -a and -p flags can be omitted. Examples:

bash
./rcon -a 127.0.0.1:16260 players
./rcon status
./rcon -p mypassword
./rcon

Default configuration file name is rcon.yaml. File must be saved in yaml format. It is also possible to set the environment name and connection parameters for each server. You can enable logging requests and responses. To do this, you need to define the log variable in the environment blocks. You can do this for each server separately and create different log files for them. If the path to the log file not specified, then logging will not be conducted.

yaml
default:
  address: "127.0.0.1:16260"
  password: "password"
  log: "rcon-default.log"
zomboid:
  address: "127.0.0.1:16260"
  password: "password"
  log: "rcon-zomboid.log"
rust:
  address: "127.0.0.1:28003"
  password: "password"
7dtd:
  address: "172.19.0.2:8081"
  password: "password"
  type: "telnet"

Args

You can choose the environment at the start:

bash
./rcon -e rust status
./rcon -e zomboid

Set custom config file:

bash
./rcon -c /path/to/config/file.yaml

Use -l argument to specify path to log file:

bash
./rcon -l /path/to/file.log

Use -t argument to specify the protocol type:

bash
# 7 Days to Die
./rcon -a 172.19.0.2:8081 -p password -t telnet version

# Rust
./rcon -a 127.0.0.1:28016 -p password -t web status

Use -T argument to specify dial and execute timeout:

bash
./rcon -a 172.19.0.2:8081 -p password -t telnet -T 10s version

Contribute

If you think that you have found a bug, create an issue and indicate your operating system, platform, and the game on which the error reproduced. Also describe what you were doing so that the error could be reproduced.

License

MIT License, see LICENSE

Stargazers over time

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Goconan-exilescsgogorconminecraft

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具