| Crates.io | surgery |
| lib.rs | surgery |
| version | 1.2.0 |
| created_at | 2025-12-15 05:54:53.166758+00 |
| updated_at | 2026-01-01 03:13:54.998599+00 |
| description | A simple CLI for Real Debrid |
| homepage | https://github.com/dotzenith/surgery |
| repository | https://github.com/dotzenith/surgery |
| max_upload_size | |
| id | 1985616 |
| size | 61,077 |
Surgery is a simple CLI to interact with Real Debrid. The aim is to allow users to fuzzy match and download torrents from their Real Debrid account.
# You likely do not need to change this
# also note the lack of trailing slash
export RD_BASE_URL="https://api.real-debrid.com/rest/1.0"
# Available at: https://real-debrid.com/apitoken
export RD_API_KEY=""
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/dotzenith/surgery/releases/latest/download/surgery-installer.sh | sh
brew install dotzenith/tap/surgery
powershell -ExecutionPolicy ByPass -c "irm https://github.com/dotzenith/surgery/releases/latest/download/surgery-installer.ps1 | iex"
cargo install surgery
Pre-Compiled binaries for linux, mac, and windows are available in Releases
git clone https://github.com/dotzenith/surgery.git
cd surgery
cargo build --release
./target/release/srg
A simple CLI for Real Debrid
Usage: srg [OPTIONS] <NAME>
Arguments:
<NAME> torrent name for fuzzy matching (required)
Options:
-b, --best Download the best matching torrent for the provided name
-a, --all Download all files for the selected torrent
-h, --help Print help
-V, --version Print version
srg "debian" # torrent names are fuzzy matched
srg "ubuntu" --best
srg "arch" --all
srg "gentoo" --best --all
1.2.0 - Use skimple for fuzzy matching and use rustyline for user input