Torrent usage examples

lftp supports BitTorrent protocol in the torrent command. Here are some examples.

Bootstrap DHT (run once)
lftp> torrent --dht-bootstrap=router.utorrent.com
Download a torrent by metadata file (*.torrent)
lftp> torrent "http://linuxtracker.org/download.php?id=7d7ccab78c13c722907e760e99bcb77cca00078b&f=Zorin-OS-12-Core-64.iso.torrent&key=6c2d037a"
Download a torrent by magnet URL
lftp> torrent "magnet:?xt=urn:btih:PV6MVN4MCPDSFED6OYHJTPFXPTFAAB4L"
Download a torrent by hash
lftp> torrent 7d7ccab78c13c722907e760e99bcb77cca00078b
Share a file or directory (magnet URL is printed)
lftp> torrent --share routeros-6.37.2 magnet:?xt=urn:btih:3878AA5482282531B5295B5E860F30F9A0489E51&xl=552147978&dn=routeros-6.37.2