LinuxCommandLibrary

transmission-create

Create torrent files from specified content

TLDR

Create a torrent with a specific piece size (in KB)

$ transmission-create [[-o|--outfile]] [path/to/example.torrent] [[-t|--tracker]] [tracker_announce_url] [[-s|--piecesize]] [2048] [path/to/file_or_directory]
copy

Create a private torrent with a specific piece size (in KB)
$ transmission-create [[-p|--private]] [[-o|--outfile]] [path/to/example.torrent] [[-t|--tracker]] [tracker_announce_url] [[-s|--piecesize]] [2048] [path/to/file_or_directory]
copy

Create a torrent with a comment
$ transmission-create [[-o|--outfile]] [path/to/example.torrent] [[-t|--tracker]] [tracker_url1] [[-c|--comment]] [comment] [path/to/file_or_directory]
copy

Create a torrent with multiple trackers
$ transmission-create [[-o|--outfile]] [path/to/example.torrent] [[-t|--tracker]] [tracker_url1] [[-t|--tracker]] [tracker_url2] [path/to/file_or_directory]
copy

Display help page
$ transmission-create [[-h|--help]]
copy

SYNOPSIS

transmission-create [options]

PARAMETERS

-h, --help
    Display help message and exit.

-o , --outfile
    Specify the output torrent file name.

-c , --comment
    Add a comment to the torrent.

-t , --tracker
    Add a tracker URL to the torrent. May be specified multiple times.

-l , --piece-size
    Specify the piece size in KiB (kilobytes). Must be a power of 2.

-p, --private
    Set the private flag, disabling DHT and PEX.

-s, --seed
    Start seeding immediately after creation.

-v, --verbose
    Show verbose output.


    The file or directory to be shared in the torrent.

DESCRIPTION

The `transmission-create` command is a command-line utility used to generate new torrent files for use with the Transmission BitTorrent client. It allows users to specify the files or directories to be shared, announce URLs for trackers, and other torrent metadata. This tool is essential for creating and distributing content through the BitTorrent network using Transmission, allowing fine-grained control over the creation process.

It supports various options for customizing the torrent, including setting piece size, adding private flags, and controlling comment fields. The generated torrent file can then be distributed to others, enabling them to download the shared content through the BitTorrent protocol. It's widely used by content creators and distributors who want to leverage BitTorrent for efficient file sharing.

CAVEATS

The piece size must be a power of 2. Ensure you have write permissions in the directory where you are saving the generated torrent file. Verify tracker URLs are correct for proper peer discovery.

EXAMPLES

Creating a torrent file:
`transmission-create -o mytorrent.torrent my_directory`

Creating a torrent with a tracker and comment:
`transmission-create -t http://tracker.example.com/announce -c "My torrent" -o mytorrent.torrent my_file.txt`

Creating a private torrent:
`transmission-create -p -o mytorrent.torrent my_directory`

SEE ALSO

Copied to clipboard