![]() |
![]()
| ![]() |
![]()
NAMEbtcli - command line interface to btpdSYNOPSISbtcli OPERATION [OPERATION_OPTIONS]DESCRIPTIONbtcli is a utility that interacts with a running btpd daemon. It has several different modes of operation.OPERATIONSOne of the following operations must be specified when running btcli:
ADD OPTIONS
LIST OPTIONS
%n - torrent name
%^ - upload rate
%D - downloaded bytes
%A - available pieces
%p - percent have (formatted)
%% - a percent symbol: '%' STAT OPTIONS
START OPTIONS
STOP OPTIONS
USAGEbtpd must be started before btcli can be used. See btpd(1) for help with starting btpd.To start sharing a torrent with btpd, the torrent needs to be added to btpd. This is done with btcli add. Unless otherwise specified, btpd automatically starts to share the torrent and download any missing data. If the content directory you specify when adding a torrent does not exist, btpd will create it. You can see which torrents have been added to btpd with btcli list. The list mode also displays a number for each added torrent. This number can be used to specify the target torrent for the btcli modes, so you don't have to keep the torrent file after adding it. The up- and download progress can be followed by using the btcli stat mode. Both the list and stat modes use the following indicators to display the state of a torrent:
You can stop an active torrent with btcli stop. You can start an inactive torrent by using btcli start. Note: Torrents can be specified either with its number or its file. The btcli del mode should only be used when you're totally finished with sharing a torrent. The mode will remove the torrent and its associated data from btpd. It is a bad idea to remove a not fully downloaded torrent and then add it again, since btpd has lost information on the not fully downloaded pieces and will need to download the data again. To shut down btpd use btcli kill. EXAMPLESDisplay a list btpd's torrents and their number, size, status, etc.$ btcli list
Same as above, but only for torrent 12 and my.little.torrent.
$ btcli list 12 my.little.torrent
Same as above but only for active torrents.
$ btcli list -a
Add foo.torrent, with content dir foo.torrent.d, and start it.
$ btcli add -d foo.torrent.d foo.torrent
Same as above without starting it.
$ btcli add --no-start -d foo.torrent.d
foo.torrent
Start bar.torrent and torrent number 7.
$ btcli start bar.torrent 7
Stop torrent number 7.
$ btcli stop 7
Stop all active torrents.
$ btcli stop -a
Remove bar.torrent and it's associated information from btpd.
$ btcli del bar.torrent
Display a summary of up/download stats for the active torrents.
$ btcli stat
Display the summary once every five seconds.
$ btcli stat -w 5
Same as above, but also display individual stats for each active
torrent.
$ btcli stat -w 5 -i
Shut down btpd.
$ btcli kill
BUGSKnown bugs are listed at http://github.com/queueRAM/btpd/issuesBefore submitting a bug report, please verify that you are running the latest version of btpd. AUTHORSCurrent maintainers:- Marq Schneider <queueRAM@gmail.com> Past contributors: - Richard Nyberg <btpd@murmeldjur.se> SEE ALSObtpd(1) btinfo(1)
|