A clone of btpd with my configuration changes.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

200 lignes
5.0 KiB

  1. .TH BTCLI "1" "2010\-07\-15" "BitTorrent Protocol Daemon 0.15" "User Commands"
  2. .\" disable hyphenation
  3. .nh
  4. .\" adjust text to left margin only
  5. .ad l
  6. .\" -----------------------------------------------------------------
  7. .\" MAIN CONTENT
  8. .\" -----------------------------------------------------------------
  9. .SH "NAME"
  10. btcli \- command line interface to btpd
  11. .SH "SYNOPSIS"
  12. .B btcli
  13. \fIOPERATION\fR [\fIOPERATION_OPTIONS\fR]
  14. .SH "DESCRIPTION"
  15. .PP
  16. \fBbtcli\fR is a utility that interacts with a running btpd daemon.
  17. It has several different modes of operation.
  18. .SH "OPERATIONS"
  19. .PP
  20. One of the following operations must be specified when running btcli:
  21. .TP
  22. \fBadd\fR \- Add torrents to btpd.
  23. .TP
  24. \fBdel\fR \- Remove torrents from btpd.
  25. .TP
  26. \fBkill\fR \- Shut down btpd.
  27. .TP
  28. \fBlist\fR \- List torrents.
  29. .TP
  30. \fBstart\fR \- Activate torrents.
  31. .TP
  32. \fBstat\fR \- Display stats for active torrents.
  33. .TP
  34. \fBstop\fR \- Deactivate torrents.
  35. .TP
  36. \fB\-\-help\fR \fIOPERATION\fR Show help for the specified operation.
  37. .SH "ADD OPTIONS"
  38. .TP
  39. \fB\-d\fR dir
  40. Specifies the directory in which the files in the torrent will be downloaded;
  41. It does not specify \fBbtpd\fR's "work" directory.
  42. That is gathered from the environment variable \fI$HOME\fR.
  43. .TP
  44. \fB\-N, \-\-nostart\fR
  45. Do not start the torrent immediately after adding it.
  46. .TP
  47. \fB\-T, \-\-topdir\fR
  48. Append the torrent top directory (if any) to the content path.
  49. .TP
  50. \fB\-n\fR name
  51. Specifies the name to be displayed for this torrent.
  52. .SH "LIST OPTIONS"
  53. .TP
  54. \fB\-a\fR
  55. List active torrents.
  56. .TP
  57. \fB\-i\fR
  58. List inactive torrents.
  59. .SH "STAT OPTIONS"
  60. .TP
  61. \fB\-i\fR
  62. Display individual lines for each torrent.
  63. .TP
  64. \fB\-n\fR
  65. Display the name of each torrent. Implies '-i'.
  66. .SH "STOP OPTIONS"
  67. .TP
  68. \fB\-a\fR
  69. Deactivate all torrents.
  70. .SH "USAGE"
  71. .PP
  72. btpd must be started before btcli can be used. See \fBbtpd\fR(1) for help with starting btpd.
  73. .PP
  74. To start sharing a torrent with btpd, the torrent needs to be added to btpd. This is done with \fBbtcli add\fR. 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.
  75. .PP
  76. You can see which torrents have been added to btpd with \fBbtcli list\fR. 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.
  77. .PP
  78. The up\- and download progress can be followed by using the \fBbtcli stat\fR mode. Both the list and stat modes use the following indicators to display the state of a torrent:
  79. .RS 4
  80. .TP 4
  81. \fB+\fR
  82. The torrent is starting. This may take time if btpd needs to test the content of this torrent or one started before it.
  83. .TP 4
  84. \fB\-\fR
  85. The torrent is being stopped.
  86. .TP 4
  87. \fBI\fR
  88. The torrent is inactive.
  89. .TP 4
  90. \fBS\fR
  91. btpd is seeding the torrent.
  92. .TP 4
  93. \fBL\fR
  94. btpd is leeching the torrent.
  95. .RE
  96. .PP
  97. You can stop an active torrent with \fBbtcli stop\fR. You can start an inactive torrent by using \fBbtcli start\fR.
  98. .PP
  99. .B Note:
  100. Torrents can be specified either with its number or its file.
  101. .PP
  102. The \fBbtcli del\fR 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.
  103. .PP
  104. To shut down btpd use \fBbtcli kill\fR.
  105. .SH "EXAMPLES"
  106. Display a list btpd's torrents and their number, size, status, etc.
  107. .RS 4
  108. .B $ btcli list
  109. .RE
  110. .PP
  111. Same as above, but only for torrent 12 and my.little.torrent.
  112. .br
  113. .RS 4
  114. .B $ btcli list 12 my.little.torrent
  115. .RE
  116. .PP
  117. Same as above but only for active torrents.
  118. .br
  119. .RS 4
  120. .B $ btcli list \-a
  121. .RE
  122. .PP
  123. Add foo.torrent, with content dir foo.torrent.d, and start it.
  124. .br
  125. .RS 4
  126. .B $ btcli add \-d foo.torrent.d foo.torrent
  127. .RE
  128. .PP
  129. Same as above without starting it.
  130. .br
  131. .RS 4
  132. .B $ btcli add \-\-no\-start \-d foo.torrent.d foo.torrent
  133. .RE
  134. .PP
  135. Start bar.torrent and torrent number 7.
  136. .br
  137. .RS 4
  138. .B $ btcli start bar.torrent 7
  139. .RE
  140. .PP
  141. Stop torrent number 7.
  142. .br
  143. .RS 4
  144. .B $ btcli stop 7
  145. .RE
  146. .PP
  147. Stop all active torrents.
  148. .br
  149. .RS 4
  150. .B $ btcli stop \-a
  151. .RE
  152. .PP
  153. Remove bar.torrent and it's associated information from btpd.
  154. .br
  155. .RS 4
  156. .B $ btcli del bar.torrent
  157. .RE
  158. .PP
  159. Display a summary of up/download stats for the active torrents.
  160. .br
  161. .RS 4
  162. .B $ btcli stat
  163. .RE
  164. .PP
  165. Display the summary once every five seconds.
  166. .br
  167. .RS 4
  168. .B $ btcli stat \-w 5
  169. .RE
  170. .PP
  171. Same as above, but also display individual stats for each active torrent.
  172. .br
  173. .RS 4
  174. .B $ btcli stat \-w 5 \-i
  175. .RE
  176. .PP
  177. Shut down btpd.
  178. .br
  179. .RS 4
  180. .B $ btcli kill
  181. .RE
  182. .SH "BUGS"
  183. Known bugs are listed at \fIhttp://github.com/queueRAM/btpd/issues\fR
  184. .sp
  185. Before submitting a bug report, please verify that you are running the latest version of btpd.
  186. .SH "AUTHORS"
  187. .sp
  188. Current maintainers:
  189. .sp
  190. \- Marq Schneider <\fIqueueRAM@gmail.com\fR>
  191. .sp
  192. Past contributors:
  193. .sp
  194. \- Richard Nyberg <\fIbtpd@murmeldjur.se\fR>
  195. .SH "SEE ALSO"
  196. .BR \fBbtpd\fR(1)
  197. .BR \fBbtinfo\fR(1)