1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-28 05:35:26 +02:00
tldr/pages/common/webtorrent.md
Managor 23340cc6e0
common/*: reduce usage of "command-line" (part 1) (#16949)
Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com>
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
2025-06-29 11:48:18 +03:00

37 lines
945 B
Markdown

# webtorrent
> The interface for WebTorrent.
> Supports magnets, URLs, info hashes and `.torrent` files.
> More information: <https://github.com/webtorrent/webtorrent-cli>.
- Download a torrent:
`webtorrent download "{{torrent_id}}"`
- Stream a torrent to VLC media player:
`webtorrent download "{{torrent_id}}" --vlc`
- Stream a torrent to a Digital Living Network Alliance (DLNA) device:
`webtorrent download "{{torrent_id}}" --dlna`
- Display a list of files for a specific torrent:
`webtorrent download "{{torrent_id}}" --select`
- Specify a file index from the torrent to download:
`webtorrent download "{{torrent_id}}" --select {{index}}`
- Seed a specific file or directory:
`webtorrent seed {{path/to/file_or_directory}}`
- Create a new torrent file for the specified file path:
`webtorrent create {{path/to/file}}`
- Display information for a magnet URI or `.torrent` file:
`webtorrent info {{path/to/file_or_magnet}}`