TorrentFile

CLI Usage Examples

Creating Torrents

Using the sub-command create or c TorrentFile can create a new torrent
from the contents of a file or directory path. The following examples illustrate
some of the options available for creating torrents (AKA meta files).

>torrentfile create /path/to/content

do this

>torrentfile create /path/to/content --tracker http://tracker1.com

or this

>torrentfile create -t http://tracker2 http://tracker3 --private /path/to/content

not this

>torrentfile create --tracker http://tracker /path/to/content   #ERROR
>torrentfile create -t http://tracker1 http://tracker2 /path/to/content #ERROR
>torrentfile create --private --source /path/to/content --tracker https://tracker/url
>torrentfile -t http://tracker.com --noprogress
>torrentfile create -o /specific/path/name.torrent ./content
>torrentfile create --meta-version 2 /path/to/content
>torrentfile create --meta-version 3 /path/to/content
>torrentfile create --t https://tracker1/annc https://tracker2/annc --magnet /path/to/content

Check/Recheck Torrent

Using the sub-command recheck or check or r you can check the percentage of a torrent
is saved to disk by comparing the the contents to a torrent metafile.

>torrentfile recheck /path/to/some.torrent /path/to/content

Edit Torrent

Using the sub-command edit or e enables editting a pre-existing torrent file. The edit sub-command works the same as the create sub-command and accepts many of the same arguments.


Create Magnet

To create a magnet URI for a pre-existing torrent meta file, use the sub-command
magnet or m with the path to the torrent file.

>torrentfile magnet /path/to/some.torrent

Interactive Mode

Alternatively to supplying a bunch of command line arguments, interactive mode allows users to specify program options one at a time from a series of prompts.

>torrentfile -i

GUI

If you prefer a graphical windowed interface please check out the official GUI frontend here