Skip to main content

An async CLI for Q3 compatible RCON servers built with aio-q3-rcon and clypi.

Project description

q3rcon-cli

Hatch project Ruff PyPI - Version PyPI - Python Version


Table of Contents

Installation

with uv

uv tool install q3rcon-cli

with pipx

pipx install q3rcon-cli

The CLI should now be discoverable as q3rcon-cli.

Configuration

Flags

Pass --host, --port and --password as flags:

q3rcon-cli --host=localhost --port=28960 --password=rconpassword

Additional Flags:

  • --interactive: Boolean flag, enable REPL mode.

Environment Variables

example .envrc:

#!/usr/bin/env bash

export Q3RCON_CLI_HOST=localhost
export Q3RCON_CLI_PORT=28960
export Q3RCON_CLI_PASSWORD="<rcon password>"

Use

Usage: q3rcon-cli [OPTIONS] COMMAND

┏━ Subcommands ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ fastrestart  Executes a fast restart of the server                                               ┃
┃ gametype     Get or set the current gametype of the server                                       ┃
┃ hostname     Get or set the current hostname of the server                                       ┃
┃ map          Get the current map or change to a new one                                          ┃
┃ mapname      Prints the current map name of the server                                           ┃
┃ maprestart   Restarts the current map                                                            ┃
┃ maprotate    Rotates the map to the next one in the map rotation list                            ┃
┃ plugins      Prints the currently loaded plugins of the server                                   ┃
┃ status       Prints the status of the server                                                     ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛

┏━ Options ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ -i, --interactive   Whether to start in interactive mode (defaults to false)                     ┃
┃ -v, --version       Show the version and exit                                                    ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛

┏━ Connection options ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ -h, --host <HOST>          The host to connect to                                                ┃
┃ -p, --port <PORT>          The port to connect to                                                ┃
┃ -P, --password <PASSWORD>  The password for authentication                                       ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛

Shell Completion

Shell completion scripts are available for bash, zsh, and fish.

q3rcon-cli --install-autocomplete

Special Thanks

License

q3rcon-cli is distributed under the terms of the MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

q3rcon_cli-0.3.3.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

q3rcon_cli-0.3.3-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

Details for the file q3rcon_cli-0.3.3.tar.gz.

File metadata

  • Download URL: q3rcon_cli-0.3.3.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for q3rcon_cli-0.3.3.tar.gz
Algorithm Hash digest
SHA256 93ec14afcb0e6b7d1d94e10423e7cfcf798f0f47e78ffe0d392e270cf847b05c
MD5 f2d6ee675dd9a25edf15150017bd7b70
BLAKE2b-256 27cf2e166defb47464afa8f31f12bf78c420ad29c2d5ee476b82e122f1b02384

See more details on using hashes here.

Provenance

The following attestation bundles were made for q3rcon_cli-0.3.3.tar.gz:

Publisher: publish.yml on onyx-and-iris/q3rcon-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file q3rcon_cli-0.3.3-py3-none-any.whl.

File metadata

  • Download URL: q3rcon_cli-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 12.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for q3rcon_cli-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f1fde32405a747f5ebdf322d778b2fd0bc95068816811156f7a1b7559e5e126e
MD5 7be9a43163b0448993e0388a4ad33e8f
BLAKE2b-256 f76478838727ee83b9a300829b36f9fe0e775d08f27a95f53fb822cb901e4b71

See more details on using hashes here.

Provenance

The following attestation bundles were made for q3rcon_cli-0.3.3-py3-none-any.whl:

Publisher: publish.yml on onyx-and-iris/q3rcon-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page