Skip to content

MyMel2001/rcon-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RCON CLI

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.

Installation

npm install -g .

Or run directly with Node:

node index.js <host> <port> <password> [command]

Usage

Single Command

rcon-cli 127.0.0.1 25575 mypassword "list"
rcon-cli 127.0.0.1 25575 mypassword "say Hello from RCON"

Interactive Mode

rcon-cli 127.0.0.1 25575 mypassword --interactive

In interactive mode, you can type commands repeatedly. Type exit or quit to disconnect.

Help

rcon-cli --help

Protocol

This client implements the standard RCON protocol:

  • TCP connection to the specified host and port
  • Authentication with password
  • Command execution with response handling

Examples

Minecraft Server

# 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

Source Engine Games (CS:GO, TF2, etc.)

# Get server status
rcon-cli localhost 27015 mypassword "status"

# Change map
rcon-cli localhost 27015 mypassword "changelevel de_dust2"

Requirements

  • Node.js >= 14.0.0

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors