Skip to content

mktorrent

Simple command line utility to create BitTorrent metainfo files


Create torrent for upload on website

  • -a specify the full announce URLs
mktorrent -a <announce_url> -o <path_to_upload>

Create torrent for upload on website with a comment

mktorrent -a <announce_url> -o <path_to_upload> -c comment

Create torrent for upload on website by forcing overwriting of the output file

mktorrent -f -a <announce_url> -o <path_to_upload>

Create a private tracker torrent

mktorrent -p -a <announce_url> -o <path_to_upload>

Create torrent with multiple announce URLs

mktorrent -a <announce1> -a <announce2> -o <path_to_upload>

Set explicit piece size (power of two)

mktorrent -l 22 -a <announce_url> -o <path_to_upload>

Add source tag for cross-seeding

mktorrent -s SOURCE_TAG -a <announce_url> -o <path_to_upload>

Add web seed (HTTP/HTTPS)

mktorrent -w https://example.org/files/ -a <announce_url> -o <path_to_upload>

Create deterministic torrent (sorted files)

mktorrent -n -a <announce_url> -o <path_to_upload>

Verbose torrent creation

mktorrent -v -a <announce_url> -o <path_to_upload>