Options (5)
-a, --announcebooleanCreate a torrent with 2^21 KB as the piece size
Example:
mktorrent {{[-a|--announce]}} {{tracker_announce_url}} {{[-l|--piece-length]}} {{21}} {{[-o|--output]}} {{path/to/example.torrent}} {{path/to/file_or_directory}}-l, --piece-lengthbooleanCreate a torrent with 2^21 KB as the piece size
Example:
mktorrent {{[-a|--announce]}} {{tracker_announce_url}} {{[-l|--piece-length]}} {{21}} {{[-o|--output]}} {{path/to/example.torrent}} {{path/to/file_or_directory}}-o, --outputbooleanCreate a torrent with 2^21 KB as the piece size
Example:
mktorrent {{[-a|--announce]}} {{tracker_announce_url}} {{[-l|--piece-length]}} {{21}} {{[-o|--output]}} {{path/to/example.torrent}} {{path/to/file_or_directory}}-p, --privatebooleanCreate a private torrent with a 2^21 KB piece size
Example:
mktorrent {{[-p|--private]}} {{[-a|--announce]}} {{tracker_announce_url}} {{[-l|--piece-length]}} {{21}} {{[-o|--output]}} {{path/to/example.torrent}} {{path/to/file_or_directory}}-c, --commentbooleanCreate a torrent with a comment
Example:
mktorrent {{[-c|--comment]}} "{{comment}}" {{[-a|--announce]}} {{tracker_announce_url}} {{[-l|--piece-length]}} {{21}} {{[-o|--output]}} {{path/to/example.torrent}} {{path/to/file_or_directory}}Examples (5)
Create a torrent with 2^21 KB as the piece size
mktorrent [-a|--announce] tracker_announce_url [-l|--piece-length] 21 [-o|--output] path/to/example.torrent path/to/file_or_directoryCreate a private torrent with a 2^21 KB piece size
mktorrent [-p|--private] [-a|--announce] tracker_announce_url [-l|--piece-length] 21 [-o|--output] path/to/example.torrent path/to/file_or_directoryCreate a torrent with a comment
mktorrent [-c|--comment] "comment" [-a|--announce] tracker_announce_url [-l|--piece-length] 21 [-o|--output] path/to/example.torrent path/to/file_or_directoryCreate a torrent with multiple trackers
mktorrent [-a|--announce] tracker_announce_url,tracker_announce_url_2 [-l|--piece-length] 21 [-o|--output] path/to/example.torrent path/to/file_or_directoryCreate a torrent with web seed URLs
mktorrent [-a|--announce] tracker_announce_url -w web_seed_url [-l|--piece-length] 21 [-o|--output] path/to/example.torrent path/to/file_or_directorymade by @shridhargupta | data from tldr-pages