Skip to content

Opyd/rd-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rd-cli

A command-line tool for downloading files through the Real-Debrid service.

Provide a link from a supported file hoster (e.g. Rapidgator, 1Fichier) and rd-cli will unrestrict it via the Real-Debrid API and download the file at full speed.

Requirements

  • A Real-Debrid account with an API token
  • Go 1.25+

Installation

Build from source:

git clone https://github.com/Opyd/rd-cli
cd rd-cli
go build -o rd-cli .

Usage

Configure your API token

rd-cli set-token                  # interactive prompt
rd-cli set-token YOUR_TOKEN_HERE  # pass token directly

Your token is saved to user-config.json in the OS user config directory:

OS Path
Linux ~/.config/rd-cli/user-config.json
macOS ~/Library/Application Support/rd-cli/user-config.json
Windows %AppData%\rd-cli\user-config.json

Download a file

rd-cli download <url>                          # download to current directory
rd-cli download <url> -n filename.mkv          # custom filename
rd-cli download <url> -p /path/to/dir          # download to specific directory
rd-cli download <url> -p /path/to/dir -n file  # custom path and filename

Batch download from file

Create a text file with one URL per line:

https://rapidgator.net/file/abc
https://1fichier.com/?xyz
rd-cli download -f links.txt                   # batch download to current directory
rd-cli download -f links.txt -p /path/to/dir   # batch download to specific directory

Failed downloads are logged to stderr and the remaining links continue downloading.

Commands

Command Description
set-token [token] Save your Real-Debrid API token
get-config Display current configuration
download <url> Unrestrict and download a file

Roadmap

  • Unrestrict link via Real-Debrid API
  • Download file with progress bar
  • Custom filename via --name flag
  • Custom output path as second argument
  • --path flag instead of positional argument
  • Batch downloading (multiple links from file)
  • Retry on network error with exponential backoff
  • Resume interrupted downloads (HTTP Range header)

License

MIT

About

CLI tool for downloading via Real Debrid

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages