GitHub

CLI to manage torrent files.

% torrent help
CLI to manage torrent files. https://github.com/arp242/torrent
Commands:
    info     Print torrent info.
    json     Print torrent info as JSON.
    missing  Check for missing files (fast, but does not verify hashes).
    check    Check file hashes.
    orphan   Find files that do not belong to any torrent.
The "missing", "check", and "orphan" commands accept a -d/-dir flag to set the
directory with files.
The "orphan" command accepts -print0 to print every entry separated by a NULL
byte, so it can be passed to xargs -0; for example:
    torrent orphan *.torrent -dir=~/dl -print0 | xargs -0 rm
To get the total size of one or more torrent(s):
    torrent json *.torrent | jq '[.[].info.files.[].length] | add'

Install with go install zgo.at/torrent@latest, which should put the binary in ~/go/bin. Or download a binary from the release page.

Read the original on github.com ↗