aria2c.1.txt 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346
  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-integrity=true|false::
  114. Check file integrity 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. -c, --continue::
  128. Continue downloading a partially downloaded
  129. file. Use this option to resume a download started by web browsers or another programs
  130. which download files sequentially from the beginning.
  131. Currently this option is applicable to http(s)/
  132. ftp downloads.
  133. -U, --user-agent=USER_AGENT::
  134. Set user agent for http(s) downloads.
  135. -n, --no-netrc::
  136. Disables netrc support.
  137. -i, --input-file=FILE::
  138. Downloads URIs found in 'FILE'. You can specify
  139. multiple URIs for a single entity: deliminate
  140. URIs by Tab in a single line.
  141. Reads input from stdin when '-' is specified.
  142. -j, --max-concurrent-downloads=N::
  143. Set maximum number of concurrent downloads.
  144. It should be used with '-i' option.
  145. Default: '5'
  146. --load-cookies=FILE::
  147. Load cookies from 'FILE'. The format of 'FILE' is
  148. one used by Netscape and Mozilla.
  149. -S, --show-files::
  150. Print file listing of .torrent or .metalink file
  151. and exit.
  152. --select-file=INDEX...::
  153. Set file to download by specifing its index.
  154. You can know file index through '--show-files'
  155. option. Multiple indexes can be specified by using
  156. ',' like "3,6".
  157. You can also use '-' to specify rangelike "1-5".
  158. ',' and '-' can be used together.
  159. When used with -M option, index may vary depending
  160. on the query(see '--metalink-*' options).
  161. -T, --torrent-file=TORRENT_FILE::
  162. The file path to .torrent file.
  163. --follow-torrent=true|false::
  164. Setting this option to 'false' prevents aria2 to
  165. enter BitTorrent mode even if the filename of
  166. downloaded file ends with .torrent.
  167. Default: 'true'
  168. --direct-file-mapping=true|false::
  169. Directly read from and write to each file
  170. mentioned in .torrent file.
  171. Default: 'true'
  172. --listen-port=PORT::
  173. Set port number to listen to for peer connection.
  174. Default: '6881-6999'
  175. --max-upload-limit=SPEED::
  176. Set max upload speed in bytes per sec.
  177. '0' means unrestricted.
  178. You can append 'K' or 'M'(1K = 1024, 1M = 1024K).
  179. Default: '0'
  180. --seed-time=MINUTES::
  181. Specify seeding time in minutes. See also
  182. '--seed-ratio' option.
  183. --seed-ratio=RATIO::
  184. Specify share ratio. Seed completed torrents until
  185. share ratio reaches 'RATIO'. '1.0' is encouraged.
  186. If '--seed-time' option is specified along with
  187. this option, seeding ends when at least one of
  188. the conditions is satisfied.
  189. -M, --metalink-file=METALINK_FILE::
  190. The file path to .metalink file.
  191. -C, --metalink-servers=NUM_SERVERS::
  192. The number of servers to connect to
  193. simultaneously.
  194. Default: '5'
  195. --metalink-version=VERSION::
  196. The version of file to download.
  197. --metalink-language=LANGUAGE::
  198. The language of file to download.
  199. --metalink-os=OS::
  200. The operating system the file is targeted.
  201. --metalink-location=LOCATION::
  202. The location of the prefered server.
  203. --follow-metalink=true|false::
  204. Setting this option to 'false' prevents aria2 to
  205. enter Metalink mode even if the filename of
  206. downloaded file ends with .metalink.
  207. Default: 'true'
  208. -v, --version::
  209. Print the version number and exit.
  210. -h, --help::
  211. Print this message and exit.
  212. URL::
  213. You can specify multiple URLs. All URLs must point to the same file
  214. or downloading fails.
  215. FILE::
  216. Specify files in multi-file torrent to download. Use conjunction with
  217. '-T' option. This arguments are ignored if you specify '--select-file' option.
  218. EXAMPLES
  219. --------
  220. Download a file by 1 connection::
  221. aria2c http://AAA.BBB.CCC/file.zip
  222. Download a file by 2 connections::
  223. aria2c -s 2 http://AAA.BBB.CCC/file.zip
  224. Download a file by 2 connections, each connects to a different server::
  225. aria2c http://AAA.BBB.CCC/file.zip http://DDD.EEE.FFF/GGG/file.zip
  226. You can mix up different protocols::
  227. aria2c http://AAA.BBB.CCC/file.zip ftp://DDD.EEE.FFF/GGG/file.zip
  228. Download files listed in a text file. 5 files are downloaded concurrently::
  229. aria2c -i uris.txt -j 5
  230. Download files passed through stdin::
  231. cat uris.txt | aria2c -i -
  232. Download a file using local cookies::
  233. aria2c --load-cookies cookies.txt http://AAA.BBB.CCC/file.zip
  234. Download a torrent::
  235. aria2c -o test.torrent http://AAA.BBB.CCC/file.torrent
  236. Download a torrent using local .torrent file::
  237. aria2c -T test.torrent
  238. Download only selected files::
  239. aria2c -T test.torrent dir/file1.zip dir/file2.zip
  240. Download only selected files using index::
  241. aria2c -T test.torrent --select-file 1,3-5
  242. Print file listing of .torrent file::
  243. aria2c -T test.torrent -S
  244. Metalink downloading::
  245. aria2c --lowest-speed-limit 10K http://AAA.BBB.CCC/file.metalink
  246. Download a file using local .metalink file::
  247. aria2c -M test.metalink
  248. Metalink downloading with preferences::
  249. aria2c -M test.metalink --metalink-version=1.1.1 --metalink-language=en-US
  250. Download only selected files::
  251. aria2c -M test.metalink --metalink-language=en-US dir/file1.zip dir/file2.zip
  252. Download only selected files using index::
  253. aria2c -M test.metalink --metalink-language=en-US --select-file 1,3-5
  254. Print file listing of .metalink file::
  255. aria2c -M test.metalink -S --metalink-language=en-US
  256. FILES
  257. -----
  258. aria2.conf::
  259. User configuration file.
  260. It must be placed under ~/.aria2 and must be named as aria2.conf.
  261. In each line, there is 1 parameter whose syntax is name=value pair,
  262. where name is the long command-line option name without '--' prefix.
  263. The lines beginning '#' are treated as comments.
  264. Example:
  265. # sample configuration file for aria2c
  266. file-allocation=prealloc
  267. listen-port=60000
  268. seed-ratio=1.0
  269. max-upload-limit=40K
  270. ftp-pasv=true
  271. REPORTING BUGS
  272. --------------
  273. Report bugs to Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  274. AUTHOR
  275. ------
  276. Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  277. COPYRIGHT
  278. ---------
  279. Copyright (C) 2006, 2007 Tatsuhiro Tsujikawa