Skip to main content

CLI tool for Throne - xray client

Project description

ThroneTools

Cross-platform CLI to install, reinstall, uninstall, and manage configuration for Throne(NekoRay) on Linux, macOS, and Windows.

Requirements

  • Python 3.10+
  • uv

Features

  • Cross-platform — Linux, macOS, and Windows support
  • Self-update — Update Throne to the latest release with one command
  • Geo data management — Install and verify geoip/geosite databases for sing-box

Quick Start (uv)

# from repo root
uv sync
uv run thronetools --help

Run without subcommands to show the styled help:

uv run thronetools

Commands

thronetools install
thronetools update --app {throne|nekoray}
thronetools backup --app {throne|nekoray} [--output <path-or-dir>]
thronetools restore --app {throne|nekoray} --zip <backup.zip>
thronetools remove --app {throne|nekoray}
thronetools reinstall --app {throne|nekoray} [--backup] [--output <path-or-dir>] [--force]
thronetools version --app {throne|nekoray}
thronetools geo-install --app {throne|nekoray}
thronetools hotspot enable [--iface <iface>] [--ssid <name>] [--password <pass>] [--dry-run]
thronetools hotspot disable [--dry-run]

Common Examples

# Install Throne
uv run thronetools install

# Update Throne to the latest version
uv run thronetools update --app throne

# Install/update geoip and geosite databases
uv run thronetools geo-install --app throne

# Backup Throne config to current directory
uv run thronetools backup --app throne

# Backup NekoRay config to a specific folder
uv run thronetools backup --app nekoray --output ~/Backups

# Restore Throne config
uv run thronetools restore --app throne --zip ~/Backups/throne-backup-2026-02-17.zip

# Reinstall with backup + restore flow
uv run thronetools reinstall --app throne --backup

# Show installed app details
uv run thronetools version --app throne

# Preview hotspot commands without applying changes
uv run thronetools hotspot enable --iface wlp2s0 --dry-run

Notes

  • hotspot commands are supported on Linux and macOS. On Windows, hotspot subcommands are not available.
  • Some operations require elevated privileges depending on platform/package manager.

Development

# Lint/format (Ruff is configured in pyproject.toml)
uv run ruff check .
uv run ruff format .

# Build package
uv build

Related Projects

Explore other CLI tools by Arian Omrani:

  • LinkCovery - Modern bookmark management CLI tool
  • PEM - Python Execution Manager - Schedule and execute Python scripts
  • OllamaTools - CLI tool for managing Ollama models

Install as a tool (optional)

If you want a globally available command via uv:

uv tool install .
thronetools --help

To update later:

uv tool upgrade thronetools

License

MIT License — see the LICENSE file for details.

Contributing

Contributions are welcome! Feel free to submit a pull request.

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

thronetools-1.1.1.tar.gz (17.8 kB view details)

Uploaded Source

Built Distribution

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

thronetools-1.1.1-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

Details for the file thronetools-1.1.1.tar.gz.

File metadata

  • Download URL: thronetools-1.1.1.tar.gz
  • Upload date:
  • Size: 17.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for thronetools-1.1.1.tar.gz
Algorithm Hash digest
SHA256 f802b41906aaf19b5efe33f5200c07a1fe30208b14795738a1c0d8b9261ee4de
MD5 6c4758dce3e5a005a22137821288bd7c
BLAKE2b-256 2ecb8065766922e13689d7bb6359608a099e34578ce10274fc6c20a8641d1660

See more details on using hashes here.

Provenance

The following attestation bundles were made for thronetools-1.1.1.tar.gz:

Publisher: release.yml on arian24b/thronetools

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

File details

Details for the file thronetools-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: thronetools-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 13.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for thronetools-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cb7ca97234caa95abeb17c458ef80d4875bf281363bee1d2f057d1df8b89bd90
MD5 a58077ecb3716659cc74acb47749f3fb
BLAKE2b-256 dcae9a386b1ab17b069278105b1a72fb7da7bef93cb5f733fcf5b6a6ea4cd462

See more details on using hashes here.

Provenance

The following attestation bundles were made for thronetools-1.1.1-py3-none-any.whl:

Publisher: release.yml on arian24b/thronetools

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