aria2c.1.txt 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283
  1. ARIA2C(1)
  2. =========
  3. Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4. NAME
  5. ----
  6. aria2c - The high speed download utility
  7. SYNOPSIS
  8. --------
  9. -----------------------------------------
  10. aria2c [OPTIONS] URL ...
  11. aria2c [OPTIONS] -T TORRENT_FILE FILE ...
  12. aria2c [OPTIONS] -M METALINK_FILE
  13. -----------------------------------------
  14. DESCRIPTION
  15. -----------
  16. aria2 is a utility for downloading files. It has completely new design
  17. concept from its predecessor, Aria, and is written from scratch.
  18. aria2 has a segmented downloading engine in its core.
  19. It can download one file from multiple URLs or multiple connections from one
  20. URL. This results in very high speed downloading, much faster than ordinary
  21. browsers. This engine in was implemented in a single-thread model.
  22. The architecture is clean and easy to extend. aria2 currently supports HTTP,
  23. FTP, and BitTorrent. It also supports Metalink version 3.0.
  24. Please visit the project web site at http://aria2.sourceforge.net
  25. OPTIONS
  26. -------
  27. -d, --dir=DIR::
  28. The directory to store downloaded file.
  29. -o, --out=FILE::
  30. The file name for downloaded file.
  31. -l, --log=LOG::
  32. The file path to store log. If '-' is specified, log is written to
  33. stdout.
  34. -D, --daemon::
  35. Run as daemon.
  36. -s, --split=N::
  37. Download a file using 'N' connections. 'N' must be between '1' and '5'.
  38. This option affects all URLs. Thus, aria2 connects to each URL with 'N'
  39. connections.
  40. Default: '1'
  41. --retry-wait=SEC::
  42. Set amount of time in second between requests for errors. Specify a
  43. value between '0' and '60'.
  44. Default: '5'
  45. -t, --timeout=SEC::
  46. Set timeout in second.
  47. Default: '60'
  48. -m, --max-tries=N::
  49. Set number of tries. '0' means unlimited.
  50. Default: '5'
  51. --http-proxy=HOST:PORT::
  52. Use HTTP proxy server. This affects to all URLs.
  53. --http-user=USER::
  54. Set HTTP user. This affects to all URLs.
  55. --http-passwd=PASSWD::
  56. Set HTTP password. This affects to all URLs.
  57. --http-proxy-user=USER::
  58. Set HTTP proxy user. This affects to all URLs
  59. --http-proxy-passwd=PASSWD::
  60. Set HTTP proxy password. This affects to all URLs.
  61. --http-proxy-method=METHOD::
  62. Set the method to use in proxy request.
  63. 'METHOD' is either 'get' or 'tunnel'.
  64. Default: 'tunnel'
  65. --http-auth-scheme=SCHEME::
  66. Set HTTP authentication scheme. Currently, 'basic'
  67. is the only supported scheme.
  68. Default: 'basic'
  69. --referer=REFERER::
  70. Set Referer. This affects to all URLs.
  71. --ftp-user=USER::
  72. Set FTP user. This affects to all URLs.
  73. Default: 'anonymous'
  74. --ftp-passwd=PASSWD::
  75. Set FTP password. This affects to all URLs.
  76. Default: 'ARIA2USER@'
  77. --ftp-type=TYPE::
  78. Set FTP transfer type. TYPE is either 'binary'
  79. or 'ascii'.
  80. Default: 'binary'
  81. -p, --ftp-pasv::
  82. Use passive mode in FTP.
  83. --ftp-via-http-proxy=METHOD::
  84. Use HTTP proxy in 'FTP'. 'METHOD' is either 'get' or
  85. 'tunnel'.
  86. Default: 'tunnel'
  87. --lowest-speed-limit=SPEED::
  88. Close connection if download speed is lower than
  89. or equal to this value(bytes per sec).
  90. 0 means aria2 does not care lowest speed limit.
  91. You can append 'K' or 'M'(1K = 1024, 1M = 1024K).
  92. This option does not affect BitTorrent download.
  93. Default: '0'
  94. --max-download-limit=SPEED::
  95. Set max download speed in bytes per sec.
  96. '0' means unrestricted.
  97. You can append 'K' or 'M'(1K = 1024, 1M = 1024K).
  98. Default: '0'
  99. --file-allocation=METHOD::
  100. Specify file allocation method. 'METHOD' is either
  101. 'none' or 'prealloc'.
  102. 'none' doesn't pre-allocate file space. 'prealloc'
  103. pre-allocates file space before download begins.
  104. This may take some time depending on the size of
  105. file.
  106. Default: 'none'
  107. --allow-overwrite=true|false::
  108. If this option set to 'false', aria2 doesn't
  109. download a file which already exists in the file
  110. system but its corresponding .aria2 file doesn't
  111. exist.
  112. Default: 'false'
  113. --check-integriy=true|false::
  114. Check file integriy by validating piece hash.
  115. This option makes effect in BitTorrent download
  116. and Metalink with chunk checksums.
  117. Use this option to redownload a damaged portion of
  118. file.
  119. You may need to specify '--allow-overwrite=true'
  120. option if .aria2 file doesn't exist.
  121. Default: 'false'
  122. --realtime-chunk-checksum=true|false::
  123. Validate chunk checksum while downloading
  124. a file in Metalink mode. This option makes effect
  125. in Metalink with chunk checksums.
  126. Default: 'true'
  127. -T, --torrent-file=TORRENT_FILE::
  128. The file path to .torrent file.
  129. --follow-torrent=true|false::
  130. Setting this option to 'false' prevents aria2 to
  131. enter BitTorrent mode even if the filename of
  132. downloaded file ends with .torrent.
  133. Default: 'true'
  134. -S, --show-files::
  135. Print file listing of .torrent file and exit.
  136. --direct-file-mapping=true|false::
  137. Directly read from and write to each file
  138. mentioned in .torrent file.
  139. Default: 'true'
  140. --listen-port=PORT::
  141. Set port number to listen to for peer connection.
  142. --max-upload-limit=SPEED::
  143. Set max upload speed in bytes per sec.
  144. '0' means unrestricted.
  145. You can append 'K' or 'M'(1K = 1024, 1M = 1024K).
  146. Default: '0'
  147. --select-file=INDEX...::
  148. Set file to download by specifing its index.
  149. You can know file index through '--show-files'
  150. option. Multiple indexes can be specified by using
  151. ',' like "3,6".
  152. You can also use '-' to specify rangelike "1-5".
  153. ',' and '-' can be used together.
  154. --seed-time=MINUTES::
  155. Specify seeding time in minutes. See also
  156. '--seed-ratio' option.
  157. --seed-ratio=RATIO::
  158. Specify share ratio. Seed completed torrents until
  159. share ratio reaches 'RATIO'. '1.0' is encouraged.
  160. If '--seed-time' option is specified along with
  161. this option, seeding ends when at least one of
  162. the conditions is satisfied.
  163. -M, --metalink-file=METALINK_FILE::
  164. The file path to .metalink file.
  165. -C, --metalink-servers=NUM_SERVERS::
  166. The number of servers to connect to
  167. simultaneously. If more than one connection per
  168. server is required, use '-s' option.
  169. Default: '15'
  170. --metalink-version=VERSION::
  171. The version of file to download.
  172. --metalink-language=LANGUAGE::
  173. The language of file to download.
  174. --metalink-os=OS::
  175. The operating system the file is targeted.
  176. --metalink-location=LOCATION::
  177. The location of the prefered server.
  178. --follow-metalink=true|false::
  179. Setting this option to 'false' prevents aria2 to
  180. enter Metalink mode even if the filename of
  181. downloaded file ends with .metalink.
  182. Default: 'true'
  183. -v, --version::
  184. Print the version number and exit.
  185. -h, --help::
  186. Print this message and exit.
  187. URL::
  188. You can specify multiple URLs. All URLs must point to the same file
  189. or downloading fails.
  190. FILE::
  191. Specify files in multi-file torrent to download. Use conjunction with
  192. '-T' option. This arguments are ignored if you specify '--select-file' option.
  193. EXAMPLES
  194. --------
  195. Download a file by 1 connection::
  196. aria2c http://AAA.BBB.CCC/file.zip
  197. Download a file by 2 connections::
  198. aria2c -s 2 http://AAA.BBB.CCC/file.zip
  199. Download a file by 2 connections, each connects to a different server::
  200. aria2c http://AAA.BBB.CCC/file.zip http://DDD.EEE.FFF/GGG/file.zip
  201. You can mix up different protocols::
  202. aria2c http://AAA.BBB.CCC/file.zip ftp://DDD.EEE.FFF/GGG/file.zip
  203. Download a torrent::
  204. aria2c -o test.torrent http://AAA.BBB.CCC/file.torrent
  205. Download a torrent using local .torrent file::
  206. aria2c -T test.torrent
  207. Download only selected files::
  208. aria2c -T test.torrent dir/file1.zip dir/file2.zip
  209. Print file listing of .torrent file::
  210. aria2c -T test.torrent -S
  211. Metalink downloading::
  212. aria2c --lowest-speed-limit 10K http://AAA.BBB.CCC/file.metalink
  213. Download a file using local .metalink file::
  214. aria2c -M test.metalink
  215. Metalink downloading with preferences::
  216. aria2c -M test.metalink --metalink-version=1.1.1 --metalink-language=en-US
  217. REPORTING BUGS
  218. --------------
  219. Report bugs to Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  220. AUTHOR
  221. ------
  222. Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  223. COPYRIGHT
  224. ---------
  225. Copyright (C) 2006, 2007 Tatsuhiro Tsujikawa