25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

433 satır
15 KiB

  1. .TH "REBAR3" "1" "January 2017" "Erlang"
  2. .SH NAME
  3. \fBrebar3\fR \- tool for working with Erlang projects
  4. .SH "SYNOPSIS"
  5. \fBrebar3\fR \fB\-\-version\fR
  6. .br
  7. \fBrebar3\fR \fBhelp\fR
  8. .br
  9. \fBrebar3\fR \fIcommand\fR [\fIoptions\fR] \.\.\.
  10. .SH "DESCRIPTION"
  11. Rebar3 is an Erlang tool that makes it easy to create, develop, and release Erlang libraries, applications, and systems in a repeatable manner\.
  12. Full documentation at \fIhttp://www.rebar3.org/\fR
  13. .SH "ESSENTIAL COMMANDS"
  14. For the full command list, see the \fICOMMANDS\fR section\.
  15. .P
  16. With \fBrebar3 help <task>\fR, commands and plugins will display their own help information\.
  17. .TP
  18. \fBcompile\fR
  19. Compile the current project
  20. .TP
  21. \fBnew\fR (\fBhelp [\fItemplate\fR])|\fItemplate\fR
  22. Show information about templates or use one
  23. .TP
  24. \fBupdate\fR
  25. Fetch the newest version of the Hex index
  26. .TP
  27. \fBdo\fR \fIcommand\fR[,\fIcommand\fR,...]
  28. Run one or more commands in a sequence
  29. .TP
  30. \fBshell\fR
  31. Start the current project in a REPL\. You can then use \fBr3:do(\fItask\fR)\fR to call it on the project without dropping the current state.
  32. .SH "COMMANDS"
  33. . this section generated by running the contents of 'commands' in rebar3 shell
  34. .TP
  35. \fBas\fR
  36. Higher order provider for running multiple tasks in a sequence as a certain profiles.
  37. .TP
  38. \fBclean\fR [\fI-a\fR|\fI--all\fR] [\fI-p\fR|\fI--profile\fR]
  39. Remove compiled beam files from apps.
  40. .IP
  41. \fI--all\fR: Clean all apps include deps
  42. .IP
  43. \fI--profile\fR: Clean under profile. Equivalent to `rebar3 as <profile> clean`
  44. .TP
  45. \fBcompile\fR
  46. Compile apps .app.src and .erl files.
  47. .TP
  48. \fBcover\fR [\fI-r\fR|\fI--reset\fR] [\fI-v\fR|\fI--verbose\fR] [\fI-m\fR|\fI--min_coverage\fR]
  49. Perform coverage analysis.
  50. .IP
  51. \fI--reset\fR: Reset all coverdata.
  52. .IP
  53. \fI--verbose\fR: Print coverage analysis.
  54. .IP
  55. \fI--min_coverage\fR: Mandate a coverage percentage required to succeed (0..100)
  56. .TP
  57. \fBct\fR [\fI--dir\fR] [\fI--suite\fR] [\fI--group\fR] [\fI--case\fR] [\fI--label\fR] [\fI--config\fR] [\fI--spec\fR] [\fI--join_specs\fR] [\fI--allow_user_terms\fR] [\fI--logdir\fR] [\fI--logopts\fR] [\fI--verbosity\fR] [\fI-c\fR|\fI--cover\fR] [\fI--cover_export_name\fR] [\fI--repeat\fR] [\fI--duration\fR] [\fI--until\fR] [\fI--force_stop\fR] [\fI--basic_html\fR] [\fI--stylesheet\fR] [\fI--decrypt_key\fR] [\fI--decrypt_file\fR] [\fI--abort_if_missing_suites\fR] [\fI--multiply_timetraps\fR] [\fI--scale_timetraps\fR] [\fI--create_priv_dir\fR] [\fI--include\fR] [\fI--readable\fR] [\fI-v\fR|\fI--verbose\fR] [\fI--name\fR] [\fI--sname\fR] [\fI--setcookie\fR] [\fI--sys_config\fR] [\fI--compile_only\fR] [\fI--retry\fR]
  58. Run Common Tests.
  59. .IP
  60. \fI--dir\fR: List of additional directories containing test suites
  61. .IP
  62. \fI--suite\fR: List of test suites to run
  63. .IP
  64. \fI--group\fR: List of test groups to run
  65. .IP
  66. \fI--case\fR: List of test cases to run
  67. .IP
  68. \fI--label\fR: Test label
  69. .IP
  70. \fI--config\fR: List of config files
  71. .IP
  72. \fI--spec\fR: List of test specifications
  73. .IP
  74. \fI--join_specs\fR: Merge all test specifications and perform a single test run
  75. .IP
  76. \fI--allow_user_terms\fR: Allow user defined config values in config files
  77. .IP
  78. \fI--logdir\fR: Log folder
  79. .IP
  80. \fI--logopts\fR: Options for common test logging
  81. .IP
  82. \fI--verbosity\fR: Verbosity
  83. .IP
  84. \fI--cover\fR: Generate cover data
  85. .IP
  86. \fI--cover_export_name\fR: Base name of the coverdata file to write
  87. .IP
  88. \fI--repeat\fR: How often to repeat tests
  89. .IP
  90. \fI--duration\fR: Max runtime (format: HHMMSS)
  91. .IP
  92. \fI--until\fR: Run until (format: HHMMSS)
  93. .IP
  94. \fI--force_stop\fR: Force stop on test timeout (true | false | skip_rest)
  95. .IP
  96. \fI--basic_html\fR: Show basic HTML
  97. .IP
  98. \fI--stylesheet\fR: CSS stylesheet to apply to html output
  99. .IP
  100. \fI--decrypt_key\fR: Path to key for decrypting config
  101. .IP
  102. \fI--decrypt_file\fR: Path to file containing key for decrypting config
  103. .IP
  104. \fI--abort_if_missing_suites\fR: Abort if suites are missing
  105. .IP
  106. \fI--multiply_timetraps\fR:
  107. .IP
  108. \fI--scale_timetraps\fR: Scale timetraps
  109. .IP
  110. \fI--create_priv_dir\fR: Create priv dir (auto_per_run | auto_per_tc | manual_per_tc)
  111. .IP
  112. \fI--include\fR: Directories containing additional include files
  113. .IP
  114. \fI--readable\fR: Shows test case names and only displays logs to shell on failures
  115. .IP
  116. \fI--verbose\fR: Verbose output
  117. .IP
  118. \fI--name\fR: Gives a long name to the node
  119. .IP
  120. \fI--sname\fR: Gives a short name to the node
  121. .IP
  122. \fI--setcookie\fR: Sets the cookie if the node is distributed
  123. .IP
  124. \fI--sys_config\fR: List of application config files
  125. .IP
  126. \fI--compile_only\fR: Compile modules in the project with the test configuration but do not run the tests
  127. .IP
  128. \fI--retry\fR: Experimental feature. If any specification for previously failing test is found, runs them.
  129. .TP
  130. \fBdeps\fR
  131. List dependencies
  132. .TP
  133. \fBdialyzer\fR [\fI-u\fR|\fI--update-plt\fR] [\fI-s\fR|\fI--succ-typings\fR]
  134. Run the Dialyzer analyzer on the project.
  135. .IP
  136. \fI--update-plt\fR: Enable updating the PLT. Default: true
  137. .IP
  138. \fI--succ-typings\fR: Enable success typing analysis. Default: true
  139. .TP
  140. \fBdo\fR
  141. Higher order provider for running multiple tasks in a sequence.
  142. .TP
  143. \fBedoc\fR
  144. Generate documentation using edoc.
  145. .TP
  146. \fBescriptize\fR
  147. Generate escript archive.
  148. .TP
  149. \fBeunit\fR [\fI--app\fR] [\fI--application\fR] [\fI-c\fR|\fI--cover\fR] [\fI--cover_export_name\fR] [\fI-d\fR|\fI--dir\fR] [\fI-f\fR|\fI--file\fR] [\fI-m\fR|\fI--module\fR] [\fI-s\fR|\fI--suite\fR] [\fI-v\fR|\fI--verbose\fR] [\fI--name\fR] [\fI--sname\fR] [\fI--setcookie\fR]
  150. Run EUnit Tests.
  151. .IP
  152. \fI--app\fR: Comma separated list of application test suites to run. Equivalent to `[{application, App}]`.
  153. .IP
  154. \fI--application\fR: Comma separated list of application test suites to run. Equivalent to `[{application, App}]`.
  155. .IP
  156. \fI--cover\fR: Generate cover data. Defaults to false.
  157. .IP
  158. \fI--cover_export_name\fR: Base name of the coverdata file to write
  159. .IP
  160. \fI--dir\fR: Comma separated list of dirs to load tests from. Equivalent to `[{dir, Dir}]`.
  161. .IP
  162. \fI--file\fR: Comma separated list of files to load tests from. Equivalent to `[{file, File}]`.
  163. .IP
  164. \fI--module\fR: Comma separated list of modules to load tests from. Equivalent to `[{module, Module}]`.
  165. .IP
  166. \fI--suite\fR: Comma separated list of modules to load tests from. Equivalent to `[{module, Module}]`.
  167. .IP
  168. \fI--verbose\fR: Verbose output. Defaults to false.
  169. .IP
  170. \fI--name\fR: Gives a long name to the node
  171. .IP
  172. \fI--sname\fR: Gives a short name to the node
  173. .IP
  174. \fI--setcookie\fR: Sets the cookie if the node is distributed
  175. .TP
  176. \fBget-deps\fR
  177. Fetch dependencies.
  178. .TP
  179. \fBhelp\fR
  180. Display a list of tasks or help for a given task or subtask.
  181. .TP
  182. \fBnew\fR [\fI-f\fR|\fI--force\fR]
  183. Create new project from templates.
  184. .IP
  185. \fI--force\fR: overwrite existing files
  186. .TP
  187. \fBpath\fR [\fI--app\fR] [\fI--base\fR] [\fI--bin\fR] [\fI--ebin\fR] [\fI--lib\fR] [\fI--priv\fR] [\fI-s\fR|\fI--separator\fR] [\fI--src\fR] [\fI--rel\fR]
  188. Print paths to build dirs in current profile.
  189. .IP
  190. \fI--app\fR: Comma separated list of applications to return paths for.
  191. .IP
  192. \fI--base\fR: Return the `base' path of the current profile.
  193. .IP
  194. \fI--bin\fR: Return the `bin' path of the current profile.
  195. .IP
  196. \fI--ebin\fR: Return all `ebin' paths of the current profile's applications.
  197. .IP
  198. \fI--lib\fR: Return the `lib' path of the current profile.
  199. .IP
  200. \fI--priv\fR: Return the `priv' path of the current profile's applications.
  201. .IP
  202. \fI--separator\fR: In case of multiple return paths, the separator character to use to join them.
  203. .IP
  204. \fI--src\fR: Return the `src' path of the current profile's applications.
  205. .IP
  206. \fI--rel\fR: Return the `rel' path of the current profile.
  207. .TP
  208. \fBpkgs\fR
  209. List available packages.
  210. .TP
  211. \fBrelease\fR [\fI-n\fR|\fI--relname\fR] [\fI-v\fR|\fI--relvsn\fR] [\fI-g\fR|\fI--goal\fR] [\fI-u\fR|\fI--upfrom\fR] [\fI-o\fR|\fI--output-dir\fR] [\fI-h\fR|\fI--help\fR] [\fI-l\fR|\fI--lib-dir\fR] [\fI-p\fR|\fI--path\fR] [\fI--default-libs\fR] [\fI-V\fR|\fI--verbose\fR] [\fI-d\fR|\fI--dev-mode\fR] [\fI-i\fR|\fI--include-erts\fR] [\fI-a\fR|\fI--override\fR] [\fI-c\fR|\fI--config\fR] [\fI--overlay_vars\fR] [\fI--vm_args\fR] [\fI--sys_config\fR] [\fI--system_libs\fR] [\fI--version\fR] [\fI-r\fR|\fI--root\fR]
  212. Build release of project.
  213. .IP
  214. \fI--relname\fR: Specify the name for the release that will be generated
  215. .IP
  216. \fI--relvsn\fR: Specify the version for the release
  217. .IP
  218. \fI--goal\fR: Specify a target constraint on the system. These are usually the OTP
  219. .IP
  220. \fI--upfrom\fR: Only valid with relup target, specify the release to upgrade from
  221. .IP
  222. \fI--output-dir\fR: The output directory for the release. This is `./` by default.
  223. .IP
  224. \fI--help\fR: Print usage
  225. .IP
  226. \fI--lib-dir\fR: Additional dir that should be searched for OTP Apps
  227. .IP
  228. \fI--path\fR: Additional dir to add to the code path
  229. .IP
  230. \fI--default-libs\fR: Whether to use the default system added lib dirs (means you must add them all manually). Default is true
  231. .IP
  232. \fI--verbose\fR: Verbosity level, maybe between 0 and 3
  233. .IP
  234. \fI--dev-mode\fR: Symlink the applications and configuration into the release instead of copying
  235. .IP
  236. \fI--include-erts\fR: If true include a copy of erts used to build with, if a path include erts at that path. If false, do not include erts
  237. .IP
  238. \fI--override\fR: Provide an app name and a directory to override in the form <appname>:<app directory>
  239. .IP
  240. \fI--config\fR: The path to a config file
  241. .IP
  242. \fI--overlay_vars\fR: Path to a file of overlay variables
  243. .IP
  244. \fI--vm_args\fR: Path to a file to use for vm.args
  245. .IP
  246. \fI--sys_config\fR: Path to a file to use for sys.config
  247. .IP
  248. \fI--system_libs\fR: Path to dir of Erlang system libs
  249. .IP
  250. \fI--version\fR: Print relx version
  251. .IP
  252. \fI--root\fR: The project root directory
  253. .TP
  254. \fBrelup\fR [\fI-n\fR|\fI--relname\fR] [\fI-v\fR|\fI--relvsn\fR] [\fI-g\fR|\fI--goal\fR] [\fI-u\fR|\fI--upfrom\fR] [\fI-o\fR|\fI--output-dir\fR] [\fI-h\fR|\fI--help\fR] [\fI-l\fR|\fI--lib-dir\fR] [\fI-p\fR|\fI--path\fR] [\fI--default-libs\fR] [\fI-V\fR|\fI--verbose\fR] [\fI-d\fR|\fI--dev-mode\fR] [\fI-i\fR|\fI--include-erts\fR] [\fI-a\fR|\fI--override\fR] [\fI-c\fR|\fI--config\fR] [\fI--overlay_vars\fR] [\fI--vm_args\fR] [\fI--sys_config\fR] [\fI--system_libs\fR] [\fI--version\fR] [\fI-r\fR|\fI--root\fR]
  255. Create relup of releases.
  256. .IP
  257. \fI--relname\fR: Specify the name for the release that will be generated
  258. .IP
  259. \fI--relvsn\fR: Specify the version for the release
  260. .IP
  261. \fI--goal\fR: Specify a target constraint on the system. These are usually the OTP
  262. .IP
  263. \fI--upfrom\fR: Only valid with relup target, specify the release to upgrade from
  264. .IP
  265. \fI--output-dir\fR: The output directory for the release. This is `./` by default.
  266. .IP
  267. \fI--help\fR: Print usage
  268. .IP
  269. \fI--lib-dir\fR: Additional dir that should be searched for OTP Apps
  270. .IP
  271. \fI--path\fR: Additional dir to add to the code path
  272. .IP
  273. \fI--default-libs\fR: Whether to use the default system added lib dirs (means you must add them all manually). Default is true
  274. .IP
  275. \fI--verbose\fR: Verbosity level, maybe between 0 and 3
  276. .IP
  277. \fI--dev-mode\fR: Symlink the applications and configuration into the release instead of copying
  278. .IP
  279. \fI--include-erts\fR: If true include a copy of erts used to build with, if a path include erts at that path. If false, do not include erts
  280. .IP
  281. \fI--override\fR: Provide an app name and a directory to override in the form <appname>:<app directory>
  282. .IP
  283. \fI--config\fR: The path to a config file
  284. .IP
  285. \fI--overlay_vars\fR: Path to a file of overlay variables
  286. .IP
  287. \fI--vm_args\fR: Path to a file to use for vm.args
  288. .IP
  289. \fI--sys_config\fR: Path to a file to use for sys.config
  290. .IP
  291. \fI--system_libs\fR: Path to dir of Erlang system libs
  292. .IP
  293. \fI--version\fR: Print relx version
  294. .IP
  295. \fI--root\fR: The project root directory
  296. .TP
  297. \fBreport\fR
  298. Provide a crash report to be sent to the rebar3 issues page.
  299. .TP
  300. \fBshell\fR [\fI--config\fR] [\fI--name\fR] [\fI--sname\fR] [\fI--setcookie\fR] [\fI--script\fR] [\fI--apps\fR] [\fI--user_drv_args\fR]
  301. Run shell with project apps and deps in path.
  302. .IP
  303. \fI--config\fR: Path to the config file to use. Defaults to {shell, [{config, File}]} and then the relx sys.config file if not specified.
  304. .IP
  305. \fI--name\fR: Gives a long name to the node.
  306. .IP
  307. \fI--sname\fR: Gives a short name to the node.
  308. .IP
  309. \fI--setcookie\fR: Sets the cookie if the node is distributed.
  310. .IP
  311. \fI--script\fR: Path to an escript file to run before starting the project apps. Defaults to rebar.config {shell, [{script_file, File}]} if not specified.
  312. .IP
  313. \fI--apps\fR: A list of apps to boot before starting the shell. (E.g. --apps app1,app2,app3) Defaults to rebar.config {shell, [{apps, Apps}]} or relx apps if not specified.
  314. .IP
  315. \fI--user_drv_args\fR: Arguments passed to user_drv start function for creating custom shells.
  316. .TP
  317. \fBtar\fR [\fI-n\fR|\fI--relname\fR] [\fI-v\fR|\fI--relvsn\fR] [\fI-g\fR|\fI--goal\fR] [\fI-u\fR|\fI--upfrom\fR] [\fI-o\fR|\fI--output-dir\fR] [\fI-h\fR|\fI--help\fR] [\fI-l\fR|\fI--lib-dir\fR] [\fI-p\fR|\fI--path\fR] [\fI--default-libs\fR] [\fI-V\fR|\fI--verbose\fR] [\fI-d\fR|\fI--dev-mode\fR] [\fI-i\fR|\fI--include-erts\fR] [\fI-a\fR|\fI--override\fR] [\fI-c\fR|\fI--config\fR] [\fI--overlay_vars\fR] [\fI--vm_args\fR] [\fI--sys_config\fR] [\fI--system_libs\fR] [\fI--version\fR] [\fI-r\fR|\fI--root\fR]
  318. Tar archive of release built of project.
  319. .IP
  320. \fI--relname\fR: Specify the name for the release that will be generated
  321. .IP
  322. \fI--relvsn\fR: Specify the version for the release
  323. .IP
  324. \fI--goal\fR: Specify a target constraint on the system. These are usually the OTP
  325. .IP
  326. \fI--upfrom\fR: Only valid with relup target, specify the release to upgrade from
  327. .IP
  328. \fI--output-dir\fR: The output directory for the release. This is `./` by default.
  329. .IP
  330. \fI--help\fR: Print usage
  331. .IP
  332. \fI--lib-dir\fR: Additional dir that should be searched for OTP Apps
  333. .IP
  334. \fI--path\fR: Additional dir to add to the code path
  335. .IP
  336. \fI--default-libs\fR: Whether to use the default system added lib dirs (means you must add them all manually). Default is true
  337. .IP
  338. \fI--verbose\fR: Verbosity level, maybe between 0 and 3
  339. .IP
  340. \fI--dev-mode\fR: Symlink the applications and configuration into the release instead of copying
  341. .IP
  342. \fI--include-erts\fR: If true include a copy of erts used to build with, if a path include erts at that path. If false, do not include erts
  343. .IP
  344. \fI--override\fR: Provide an app name and a directory to override in the form <appname>:<app directory>
  345. .IP
  346. \fI--config\fR: The path to a config file
  347. .IP
  348. \fI--overlay_vars\fR: Path to a file of overlay variables
  349. .IP
  350. \fI--vm_args\fR: Path to a file to use for vm.args
  351. .IP
  352. \fI--sys_config\fR: Path to a file to use for sys.config
  353. .IP
  354. \fI--system_libs\fR: Path to dir of Erlang system libs
  355. .IP
  356. \fI--version\fR: Print relx version
  357. .IP
  358. \fI--root\fR: The project root directory
  359. .TP
  360. \fBtree\fR [\fI-v\fR|\fI--verbose\fR]
  361. Print dependency tree.
  362. .IP
  363. \fI--verbose\fR: Print repo and branch/tag/ref for git and hg deps
  364. .TP
  365. \fBunlock\fR
  366. Unlock dependencies.
  367. .TP
  368. \fBupdate\fR
  369. Update package index.
  370. .TP
  371. \fBupgrade\fR
  372. Upgrade dependencies.
  373. .TP
  374. \fBversion\fR
  375. Print version for rebar and current Erlang.
  376. .TP
  377. \fBxref\fR
  378. Run cross reference analysis.
  379. .SH ENVIRONMENT
  380. Environment variables allow overall rebar3 control across command boundaries.
  381. .TP
  382. \fBREBAR_PROFILE\fR
  383. Choose a default profile. Defaults to \fBdefault\fR
  384. .TP
  385. \fBHEX_CDN\fR
  386. Pick an alternative hex mirror.
  387. .TP
  388. \fBREBAR_CACHE_DIR\fR
  389. Location of the directory for local cache. Defaults to \fIhex.pm\fB.
  390. .TP
  391. \fBQUIET\fR
  392. Only display errors.
  393. .TP
  394. \fBDEBUG\fR
  395. Display debug information.
  396. .TP
  397. \fBREBAR_COLOR\fR=\fIhigh\fR|\fIlow\fR
  398. How much color to show in the terminal. Defaults to \fIhigh\fR.
  399. .TP
  400. \fBREBAR_CONFIG\fR
  401. Name of rebar configuration files. Defaults to \fIrebar.config\fR
  402. .SH Configuration File Options
  403. See \fIhttp://www.rebar3.org/v3.0/docs/configuration\fR