A clone of btpd with my configuration changes.
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

263 Zeilen
6.1 KiB

  1. .TH BTCLI "1" "2010\-07\-31" "BitTorrent Protocol Daemon 0.16" "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. \fBrate\fR \- Set the global up and download rates in KB/s.
  31. .TP
  32. \fBstart\fR \- Activate torrents.
  33. .TP
  34. \fBstat\fR \- Display stats for active torrents.
  35. .TP
  36. \fBstop\fR \- Deactivate torrents.
  37. .TP
  38. \fB\-\-help\fR \fIOPERATION\fR Show help for the specified operation.
  39. .SH "ADD OPTIONS"
  40. .TP
  41. \fB\-d\fR dir
  42. Specifies the directory in which the files in the torrent will be downloaded;
  43. It does not specify \fBbtpd\fR's "work" directory.
  44. That is gathered from the environment variable \fI$HOME\fR.
  45. .TP
  46. \fB\-N, \-\-nostart\fR
  47. Do not start the torrent immediately after adding it.
  48. .TP
  49. \fB\-T, \-\-topdir\fR
  50. Append the torrent top directory (if any) to the content path.
  51. .TP
  52. \fB\-n\fR name
  53. Specifies the name to be displayed for this torrent.
  54. .TP
  55. \fB\-l\fR label
  56. Set the label to associate with torrent.
  57. .SH "LIST OPTIONS"
  58. .TP
  59. \fB\-a\fR
  60. List active torrents.
  61. .TP
  62. \fB\-i\fR
  63. List inactive torrents.
  64. .TP
  65. \fB\-f\fR format
  66. Specifies a custom format to use while displaying torrents. The following is a
  67. list of the characters that can be used:
  68. .RS 8
  69. .PP
  70. \fB%n\fR \- torrent name
  71. .br
  72. \fB%#\fR \- torrent number
  73. .br
  74. \fB%h\fR \- torrent hash
  75. .br
  76. \fB%l\fR \- torrent label
  77. .br
  78. \fB%d\fR \- download directory
  79. .br
  80. \fB%t\fR \- state
  81. .br
  82. \fB%P\fR \- peer count
  83. .PP
  84. \fB%^\fR \- upload rate
  85. .br
  86. \fB%v\fR \- download rate
  87. .PP
  88. \fB%D\fR \- downloaded bytes
  89. .br
  90. \fB%U\fR \- uploaded bytes
  91. .br
  92. \fB%g\fR \- bytes got
  93. .br
  94. \fB%u\fR \- bytes uploaded
  95. .br
  96. \fB%s\fR \- total size, (formatted: prints K, M, G)
  97. .br
  98. \fB%S\fR \- total size, in bytes
  99. .PP
  100. \fB%A\fR \- available pieces
  101. .br
  102. \fB%T\fR \- total pieces
  103. .br
  104. \fB%H\fR \- have pieces
  105. .PP
  106. \fB%p\fR \- percent have (formatted)
  107. .br
  108. \fB%r\fR \- ratio
  109. .PP
  110. \fB%%\fR \- a percent symbol: '%'
  111. .RE
  112. .SH "STAT OPTIONS"
  113. .TP
  114. \fB\-i\fR
  115. Display individual lines for each torrent.
  116. .TP
  117. \fB\-n\fR
  118. Display the name of each torrent. Implies '\-i'.
  119. .SH "START OPTIONS"
  120. .TP
  121. \fB\-a\fR
  122. Activate all non\-active torrents.
  123. .SH "STOP OPTIONS"
  124. .TP
  125. \fB\-a\fR
  126. Deactivate all torrents.
  127. .SH "USAGE"
  128. .PP
  129. btpd must be started before btcli can be used. See \fBbtpd\fR(1) for help with starting btpd.
  130. .PP
  131. 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.
  132. .PP
  133. 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.
  134. .PP
  135. 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:
  136. .RS 4
  137. .TP 4
  138. \fB+\fR
  139. The torrent is starting. This may take time if btpd needs to test the content of this torrent or one started before it.
  140. .TP 4
  141. \fB\-\fR
  142. The torrent is being stopped.
  143. .TP 4
  144. \fBI\fR
  145. The torrent is inactive.
  146. .TP 4
  147. \fBS\fR
  148. btpd is seeding the torrent.
  149. .TP 4
  150. \fBL\fR
  151. btpd is leeching the torrent.
  152. .RE
  153. .PP
  154. You can stop an active torrent with \fBbtcli stop\fR. You can start an inactive torrent by using \fBbtcli start\fR.
  155. .PP
  156. .B Note:
  157. Torrents can be specified either with its number or its file.
  158. .PP
  159. 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.
  160. .PP
  161. To shut down btpd use \fBbtcli kill\fR.
  162. .SH "EXAMPLES"
  163. Display a list btpd's torrents and their number, size, status, etc.
  164. .RS 4
  165. .B $ btcli list
  166. .RE
  167. .PP
  168. Same as above, but only for torrent 12 and my.little.torrent.
  169. .br
  170. .RS 4
  171. .B $ btcli list 12 my.little.torrent
  172. .RE
  173. .PP
  174. Same as above but only for active torrents.
  175. .br
  176. .RS 4
  177. .B $ btcli list \-a
  178. .RE
  179. .PP
  180. Add foo.torrent, with content dir foo.torrent.d, and start it.
  181. .br
  182. .RS 4
  183. .B $ btcli add \-d foo.torrent.d foo.torrent
  184. .RE
  185. .PP
  186. Same as above without starting it.
  187. .br
  188. .RS 4
  189. .B $ btcli add \-\-no\-start \-d foo.torrent.d foo.torrent
  190. .RE
  191. .PP
  192. Start bar.torrent and torrent number 7.
  193. .br
  194. .RS 4
  195. .B $ btcli start bar.torrent 7
  196. .RE
  197. .PP
  198. Stop torrent number 7.
  199. .br
  200. .RS 4
  201. .B $ btcli stop 7
  202. .RE
  203. .PP
  204. Stop all active torrents.
  205. .br
  206. .RS 4
  207. .B $ btcli stop \-a
  208. .RE
  209. .PP
  210. Remove bar.torrent and it's associated information from btpd.
  211. .br
  212. .RS 4
  213. .B $ btcli del bar.torrent
  214. .RE
  215. .PP
  216. Display a summary of up/download stats for the active torrents.
  217. .br
  218. .RS 4
  219. .B $ btcli stat
  220. .RE
  221. .PP
  222. Display the summary once every five seconds.
  223. .br
  224. .RS 4
  225. .B $ btcli stat \-w 5
  226. .RE
  227. .PP
  228. Same as above, but also display individual stats for each active torrent.
  229. .br
  230. .RS 4
  231. .B $ btcli stat \-w 5 \-i
  232. .RE
  233. .PP
  234. Set the global upload rate to 20KB/s and download rate to 1MB/s.
  235. .br
  236. .RS 4
  237. .B $ btcli rate 20K 1M
  238. .RE
  239. .PP
  240. Shut down btpd.
  241. .br
  242. .RS 4
  243. .B $ btcli kill
  244. .RE
  245. .SH "BUGS"
  246. Known bugs are listed at \fIhttp://github.com/btpd/btpd/issues\fR
  247. .sp
  248. Before submitting a bug report, please verify that you are running the latest version of btpd.
  249. .SH "AUTHORS"
  250. .sp
  251. Current maintainers:
  252. .sp
  253. \- Marq Schneider <\fIqueueRAM@gmail.com\fR>
  254. .sp
  255. Past contributors:
  256. .sp
  257. \- Richard Nyberg <\fIbtpd@murmeldjur.se\fR>
  258. .SH "SEE ALSO"
  259. .BR \fBbtpd\fR(1)
  260. .BR \fBbtinfo\fR(1)