LinuxCommandLibrary

webtorrent

Streaming torrent client for the terminal

TLDR

Download torrent

$ webtorrent download "[magnet:?xt=...]"
copy
Download to directory
$ webtorrent download [file.torrent] -o [./downloads]
copy
Stream to player
$ webtorrent download [magnet] --vlc
copy
Stream to Chromecast
$ webtorrent download [magnet] --chromecast
copy
Seed file
$ webtorrent seed [file.mp4]
copy
Show torrent info
$ webtorrent info [file.torrent]
copy
Create torrent
$ webtorrent create [file.mp4]
copy

SYNOPSIS

webtorrent command [--vlc|--mpv] [-o dir] [options] torrent

DESCRIPTION

webtorrent is a torrent client that can download files to disk or stream them directly to media players like VLC and mpv while the download is still in progress. It supports both traditional BitTorrent peers and WebRTC-based browser peers.
The download command saves torrent contents to a specified directory, while streaming options like --vlc or --mpv open the media in the corresponding player as data arrives. Casting to Chromecast and AirPlay devices is also supported for streaming to TV screens.
The seed command shares local files over the BitTorrent network, and the create command generates new .torrent files. The tool accepts magnet links, torrent files, and info hashes as input.

PARAMETERS

download TORRENT

Download torrent.
seed FILE
Seed file.
info TORRENT
Show info.
create FILE
Create torrent.
-o, --out DIR
Output directory.
--vlc
Open in VLC.
--mpv
Open in mpv.
--chromecast
Cast to Chromecast.
--airplay
Cast to AirPlay.
-s, --select N
Select file index.

CAVEATS

Some trackers not supported. Streaming needs sufficient bandwidth. Browser version is different.

HISTORY

WebTorrent was created by Feross Aboukhadijeh to bring torrents to browsers. The CLI extends functionality to Node.js.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community