Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/itzg/rcon-cli
A little RCON cli based on james4k's RCON library for golang
https://github.com/itzg/rcon-cli
rcon rcon-client
Last synced: 14 days ago
JSON representation
A little RCON cli based on james4k's RCON library for golang
- Host: GitHub
- URL: https://github.com/itzg/rcon-cli
- Owner: itzg
- License: apache-2.0
- Created: 2017-04-05T20:12:45.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-09-10T01:33:55.000Z (2 months ago)
- Last Synced: 2024-10-12T18:53:17.744Z (about 1 month ago)
- Topics: rcon, rcon-client
- Language: Go
- Size: 163 KB
- Stars: 179
- Watchers: 7
- Forks: 16
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/itzg/rcon-cli)](https://github.com/itzg/rcon-cli/releases/latest)
[![test](https://github.com/itzg/rcon-cli/actions/workflows/test.yml/badge.svg)](https://github.com/itzg/rcon-cli/actions/workflows/test.yml)A little RCON cli based on james4k's RCON library for golang.
## Installation
1. Download the appropriate binary for your platform from the [latest releases](https://github.com/itzg/rcon-cli/releases/latest)
2. On UNIX-y platforms, set the binary to be executable - done!
If you [have Go](https://golang.org/dl/) you could also simply `go get github.com/itzg/rcon-cli && rcon-cli -h`.
## Usage
```text
rcon-cli is a CLI for attaching to an RCON enabled game server, such as Minecraft.
Without any additional arguments, the CLI will start an interactive session with
the RCON server.If arguments are passed into the CLI, then the arguments are sent
as a single command (joined by spaces), the response is displayed,
and the CLI will exit.Usage:
rcon-cli [flags] [RCON command ...]Examples:
rcon-cli --host mc1 --port 25575
rcon-cli --port 25575 stop
RCON_PORT=25575 rcon-cli stopFlags:
--config string config file (default is $HOME/.rcon-cli.yaml)
--host string RCON server's hostname (default "localhost")
--password string RCON server's password
--port int Server's RCON port (default 27015)
```## Configuration
You can preconfigure rcon-cli to use the arguments you want by default by modifying the file `.rcon-cli.yaml` in your home folder. If you want to use any other file use the argument `--config /path/to/the/config.yaml`.
Example of a `.rcon-cli.yaml` file:
```yaml
host: mydomain.com
port: 12345
password: mycustompassword
```That way executing `rcon-cli` without arguments would connect to `mydomain.com:12345` with the password `mycustompassword` by default.