1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-05 12:45:59 +02:00

mktorrent: add page (#3923)

This commit is contained in:
Ein Verne 2020-03-22 20:11:45 +08:00 committed by GitHub
parent 19b68e7063
commit a041034a98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

24
pages/common/mktorrent.md Normal file
View file

@ -0,0 +1,24 @@
# mktorrent
> A CLI utility to create BitTorrent metainfo files.
> More information: <https://github.com/Rudde/mktorrent>.
- Create a torrent with 2^21 KB as the piece size:
`mktorrent -a {{tracker_announce_url}} -l {{21}} -o {{path/to/example.torrent}} {{path/to/file_or_directory}}`
- Create a private torrent with a 2^21 KB piece size:
`mktorrent -p -a {{tracker_announce_url}} -l {{21}} -o {{path/to/example.torrent}} {{path/to/file_or_directory}}`
- Create a torrent with a comment:
`mktorrent -c "{{comment}}" -a {{tracker_announce_url}} -l {{21}} -o {{path/to/example.torrent}} {{path/to/file_or_directory}}`
- Create a torrent with multiple trackers:
`mktorrent -a {{tracker_announce_url,tracker_announce_url_2}} -l {{21}} -o {{path/to/example.torrent}} {{path/to/file_or_directory}}`
- Create a torrent with web seed URLs:
`mktorrent -a {{tracker_announce_url}} -w {{web_seed_url}} -l {{21}} -o {{path/to/example.torrent}} {{path/to/file_or_directory}}`