A CLI-based RCON (Remote Console) client for game servers using the RCON protocol. Compatible with Minecraft, Source engine games, and other RCON-enabled servers.
npm install -g .Or run directly with Node:
node index.js <host> <port> <password> [command]rcon-cli 127.0.0.1 25575 mypassword "list"
rcon-cli 127.0.0.1 25575 mypassword "say Hello from RCON"rcon-cli 127.0.0.1 25575 mypassword --interactiveIn interactive mode, you can type commands repeatedly. Type exit or quit to disconnect.
rcon-cli --helpThis client implements the standard RCON protocol:
- TCP connection to the specified host and port
- Authentication with password
- Command execution with response handling
# List players
rcon-cli localhost 25575 mypassword "list"
# Send a message
rcon-cli localhost 25575 mypassword "say Server restart in 5 minutes"
# Interactive mode
rcon-cli localhost 25575 mypassword -i# Get server status
rcon-cli localhost 27015 mypassword "status"
# Change map
rcon-cli localhost 27015 mypassword "changelevel de_dust2"- Node.js >= 14.0.0