RCON(1)
π
RCON(1) β like, the rcon page, bestie β¨
okay so real talk: this is rcon, from the USER COMMANDS section of your manual, and it's literally the command line source rcon client you've been looking for. no cap. let's get into it π
β¨ NAME β¨
rcon β command line source rcon client π¦
πΈ SYNOPSIS πΈ
rcon [options] command
π DESCRIPTION π
so rcon is your girl for being a command line remote console client for source game servers. iconic behavior honestly. π
she supports a configuration file so you can safely store your rcon passwords β yes bestie, safely, we love that for us πβ¨
she'll execute the command you give her, or β plot twist β if you give her no command at all, she'll read a whole list of commands from standard input. main character energy fr fr π
π OPTIONS π
-c,--configfilename β point her at a different path for the configuration file. the default is$HOME/.rconrcπ-d,--debugβ turns on debug mode. the packages she sends and receives get shown right there on your terminal. she's being transparent with you π«Ά-h,--helpβ usage. the classic. the legend. π«-H,--hosthostname β hostname or IP address of the server π-m,--minecraftβ Minecraft compatibility mode π© (yes, that Minecraft)-n,--nowaitβ don't wait for a reply from the server, just send and quit. in and out, no strings π¨-p,--portport β port or service name π-P,--passwordpassword β the remote console password of the server π-s,--servername β use this server from the configuration file π
π FILES π
~/.rconrcβ the default configuration filename forrcon. that's her home π
π§ CONFIGURATION FILE π§
the configuration file has to be in the key file format (which everyone commonly calls an INI file) and it must follow this schema exactly:
[myserver]
hostname = 173.43.63.111
port = 27003
password = somepass
# remove the line below if it the server is not minecraft
minecraft = true
once you've got that, you can use this server straight from the command line with the -s parameter:
rcon -s myserver status
and here's the slay part: the command line still trumps the configuration file. so this next one would override the port to 27010:
rcon -s myserver -p 27010 status
π¦ INTERPRETER π¦
okay this is lowkey the coolest part β rcon can also be used as a script interpreter π§ββοΈ just specify the rcon binary in the she bang. lines that start with a hash sign get ignored, and every other non-empty line gets treated as a command. this script right here runs two commands:
#!/usr/bin/rcon -s myserver
# Query status
status
# List plugins
sm plugins list
β EXAMPLES β
send status to a server with a given IP, port and password:
rcon -H 173.43.63.11 -p 27003 -P somepass status
send a patch of commands to a server:
echo -e "status\nsm plugins list" | rcon -s myserver
π BUGS π
report bugs at https://github.com/n0la/rcon β she wants to hear from you bestie π
π AUTHOR π
Copyright (c) 2016 Florian Stinglmayr <fstinglmayr@gmail.com> π
ngl, copyright and version stuff is the boring bit but we keep it because respect: this is version 0.5, dated September 19, 2016, living in the USER COMMANDS section, and that's the whole page π
periodt. you're gonna do great. mwah π
π¦ where this page comes from
- alpine 3.24: rcon-doc 0.6-r2 Β· BSD-2-Clause
- nixos 26.05: rcon 0.6
- nixpkgs unstable: rcon 0.6
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms