mktorrent
Create BitTorrent metainfo files. tldr-pages
On several platforms
Several platforms
Create a torrent with 2^21 KB as the piece size
mktorrent --announce tracker_announce_url --piece-length 21 --output path/to/example.torrent path/to/file_or_directoryIdentifyCreate a private torrent with a 2^21 KB piece size
mktorrent --private --announce tracker_announce_url --piece-length 21 --output path/to/example.torrent path/to/file_or_directoryIdentifyCreate a torrent with a comment
mktorrent --comment "comment" --announce tracker_announce_url --piece-length 21 --output path/to/example.torrent path/to/file_or_directoryIdentifyCreate a torrent with multiple trackers
mktorrent --announce tracker_announce_url,tracker_announce_url_2 --piece-length 21 --output path/to/example.torrent path/to/file_or_directoryIdentifyCreate a torrent with web seed URLs
mktorrent --announce tracker_announce_url -w web_seed_url --piece-length 21 --output path/to/example.torrent path/to/file_or_directoryIdentify