Skip to main content

mktorrent

How to create a torrent?

  1. you can use mktorrent cli to create a torrent

    mktorrent [OPTIONS] <target directory or filename>
    -a <url>[,<url>]*
    specify the full tracker announce URLs. At least one is required and additional -a
    add backup trackers

    -c <comment>
    add a comment to the metainfo

    -d
    don't write the creation date

    -h
    show help screen

    -l <n>
    set the piece length to 2^n bytes, default is 18, that is 2^18 = 256kb

    -n <name>
    set the name of the torrent, default is the basename of the target

    -o <filename>
    set the path and filename of the created file, default is <name>.torrent

    -p
    set the private flag (dissalow DHT and Peer Exchange)

    -v
    verbose output

    -w <url>[,<url>]*
    add web seed URLs, additional -w add more URLs
  2. create torrent with createtorrent

    Run box install mktorrent will install createtorrent based on mktorrent. It provides a TUI to create torrents. Use space to select folder or file, use tab to switch the button.

    createtorrent-1.png

    createtorrent-2.png

    createtorrent-3.png