Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Does anyone know of a application that allows you to create torrent files via the command-line in Windows?

Update: I need a command-line version because I'm a programmer. I need to create the torrent programmatically, I can't have a window pop-up. There's a ton of uses for command-line torrent creation and I think it's very strange that I havent found a command line version from my hours of searching the Internet.

share|improve this question

migrated from Dec 30 '10 at 21:14

This question came from our site for professional and enthusiast programmers.

Why would you want to? Is there a problem that GUI based solutions don't solve? – Kyle Dec 30 '10 at 21:17

2 Answers 2

Alternative 1) mktorrent for Windows:

Mktorrent is a very easy tool for creating Torrents on the commandline, but only for Linux (only Sourcecode to compile self) – so i compiled a Win32/Win64 Version over Cygwin.

Installation: Copy the mktorrent.exe and the DLLs in \Windows\System32\
On Server 2008 R2 Copy the mktorrent.exe in \Windows\System32\ , and the DLLs in \Windows\SysWOW64\

Usage i.e.: mktorrent -l 21 -a http://tracker.url foldername

Alternative 2) py3createtorrent:

py3createtorrent is a comprehensive shell/commandline utility for creating torrents (Linux & Windows). It's a GPL-licensed Python v3.1 script. I tested it with Ubuntu 8.04 / rTorrent and Windows 7 / µTorrent.

share|improve this answer
The mktorrent link no longer works. Is there a build of mktorrent for Windows available somewhere else? – odie5533 Mar 27 at 22:03
You're right, the link is rotten. As far as I remember, it can be run on Windows under MinGW/Cygwin. – Mehper C. Palavuzlar Mar 29 at 20:22

Transmission comes with transmission-create which is a command-line utility to create .torrent files.

Usage: transmission-create [options] <file|directory>

 -h --help              Display this help page and exit
 -p --private           Allow this torrent to only be used with the specified
 -o --outfile <file>    Save the generated .torrent to this filename
 -c --comment <comment> Add a comment
 -t --tracker <url>     Add a tracker's announce URL
 -V --version           Show version number and exit

Instructions for building Transmission on Windows.

share|improve this answer
Transmission doesn't seem to be available for Windows. – Jesse McGrew Jun 20 '13 at 17:58
I don't see any binaries available, but it can probably be compiled under Windows (Cygwin). – Cristian Ciupitu Jun 20 '13 at 19:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.