Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

426 řádky
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]
  49. Perform coverage analysis.
  50. .IP
  51. \fI--reset\fR: Reset all coverdata.
  52. .IP
  53. \fI--verbose\fR: Print coverage analysis.
  54. .TP
  55. \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--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]
  56. Run Common Tests.
  57. .IP
  58. \fI--dir\fR: List of additional directories containing test suites
  59. .IP
  60. \fI--suite\fR: List of test suites to run
  61. .IP
  62. \fI--group\fR: List of test groups to run
  63. .IP
  64. \fI--case\fR: List of test cases to run
  65. .IP
  66. \fI--label\fR: Test label
  67. .IP
  68. \fI--config\fR: List of config files
  69. .IP
  70. \fI--spec\fR: List of test specifications
  71. .IP
  72. \fI--join_specs\fR: Merge all test specifications and perform a single test run
  73. .IP
  74. \fI--allow_user_terms\fR: Allow user defined config values in config files
  75. .IP
  76. \fI--logdir\fR: Log folder
  77. .IP
  78. \fI--logopts\fR: Options for common test logging
  79. .IP
  80. \fI--verbosity\fR: Verbosity
  81. .IP
  82. \fI--cover\fR: Generate cover data
  83. .IP
  84. \fI--repeat\fR: How often to repeat tests
  85. .IP
  86. \fI--duration\fR: Max runtime (format: HHMMSS)
  87. .IP
  88. \fI--until\fR: Run until (format: HHMMSS)
  89. .IP
  90. \fI--force_stop\fR: Force stop on test timeout (true | false | skip_rest)
  91. .IP
  92. \fI--basic_html\fR: Show basic HTML
  93. .IP
  94. \fI--stylesheet\fR: CSS stylesheet to apply to html output
  95. .IP
  96. \fI--decrypt_key\fR: Path to key for decrypting config
  97. .IP
  98. \fI--decrypt_file\fR: Path to file containing key for decrypting config
  99. .IP
  100. \fI--abort_if_missing_suites\fR: Abort if suites are missing
  101. .IP
  102. \fI--multiply_timetraps\fR:
  103. .IP
  104. \fI--scale_timetraps\fR: Scale timetraps
  105. .IP
  106. \fI--create_priv_dir\fR: Create priv dir (auto_per_run | auto_per_tc | manual_per_tc)
  107. .IP
  108. \fI--include\fR: Directories containing additional include files
  109. .IP
  110. \fI--readable\fR: Shows test case names and only displays logs to shell on failures
  111. .IP
  112. \fI--verbose\fR: Verbose output
  113. .IP
  114. \fI--name\fR: Gives a long name to the node
  115. .IP
  116. \fI--sname\fR: Gives a short name to the node
  117. .IP
  118. \fI--setcookie\fR: Sets the cookie if the node is distributed
  119. .IP
  120. \fI--sys_config\fR: List of application config files
  121. .TP
  122. \fBdeps\fR
  123. List dependencies
  124. .TP
  125. \fBdialyzer\fR [\fI-u\fR|\fI--update-plt\fR] [\fI-s\fR|\fI--succ-typings\fR]
  126. Run the Dialyzer analyzer on the project.
  127. .IP
  128. \fI--update-plt\fR: Enable updating the PLT. Default: true
  129. .IP
  130. \fI--succ-typings\fR: Enable success typing analysis. Default: true
  131. .TP
  132. \fBdo\fR
  133. Higher order provider for running multiple tasks in a sequence.
  134. .TP
  135. \fBedoc\fR
  136. Generate documentation using edoc.
  137. .TP
  138. \fBescriptize\fR
  139. Generate escript archive.
  140. .TP
  141. \fBeunit\fR [\fI--app\fR] [\fI--application\fR] [\fI-c\fR|\fI--cover\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]
  142. Run EUnit Tests.
  143. .IP
  144. \fI--app\fR: Comma separated list of application test suites to run. Equivalent to `[{application, App}]`.
  145. .IP
  146. \fI--application\fR: Comma separated list of application test suites to run. Equivalent to `[{application, App}]`.
  147. .IP
  148. \fI--cover\fR: Generate cover data. Defaults to false.
  149. .IP
  150. \fI--dir\fR: Comma separated list of dirs to load tests from. Equivalent to `[{dir, Dir}]`.
  151. .IP
  152. \fI--file\fR: Comma separated list of files to load tests from. Equivalent to `[{file, File}]`.
  153. .IP
  154. \fI--module\fR: Comma separated list of modules to load tests from. Equivalent to `[{module, Module}]`.
  155. .IP
  156. \fI--suite\fR: Comma separated list of modules to load tests from. Equivalent to `[{module, Module}]`.
  157. .IP
  158. \fI--verbose\fR: Verbose output. Defaults to false.
  159. .IP
  160. \fI--name\fR: Gives a long name to the node
  161. .IP
  162. \fI--sname\fR: Gives a short name to the node
  163. .IP
  164. \fI--setcookie\fR: Sets the cookie if the node is distributed
  165. .TP
  166. \fBget-deps\fR
  167. Fetch dependencies.
  168. .TP
  169. \fBhelp\fR
  170. Display a list of tasks or help for a given task or subtask.
  171. .TP
  172. \fBnew\fR [\fI-f\fR|\fI--force\fR]
  173. Create new project from templates.
  174. .IP
  175. \fI--force\fR: overwrite existing files
  176. .TP
  177. \fBlock\fR
  178. Lock dependencies.
  179. .TP
  180. \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]
  181. Print paths to build dirs in current profile.
  182. .IP
  183. \fI--app\fR: Comma seperated list of applications to return paths for.
  184. .IP
  185. \fI--base\fR: Return the `base' path of the current profile.
  186. .IP
  187. \fI--bin\fR: Return the `bin' path of the current profile.
  188. .IP
  189. \fI--ebin\fR: Return all `ebin' paths of the current profile's applications.
  190. .IP
  191. \fI--lib\fR: Return the `lib' path of the current profile.
  192. .IP
  193. \fI--priv\fR: Return the `priv' path of the current profile's applications.
  194. .IP
  195. \fI--separator\fR: In case of multiple return paths, the separator character to use to join them.
  196. .IP
  197. \fI--src\fR: Return the `src' path of the current profile's applications.
  198. .IP
  199. \fI--rel\fR: Return the `rel' path of the current profile.
  200. .TP
  201. \fBpkgs\fR
  202. List available packages.
  203. .TP
  204. \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]
  205. Build release of project.
  206. .IP
  207. \fI--relname\fR: Specify the name for the release that will be generated
  208. .IP
  209. \fI--relvsn\fR: Specify the version for the release
  210. .IP
  211. \fI--goal\fR: Specify a target constraint on the system. These are usually the OTP
  212. .IP
  213. \fI--upfrom\fR: Only valid with relup target, specify the release to upgrade from
  214. .IP
  215. \fI--output-dir\fR: The output directory for the release. This is `./` by default.
  216. .IP
  217. \fI--help\fR: Print usage
  218. .IP
  219. \fI--lib-dir\fR: Additional dir that should be searched for OTP Apps
  220. .IP
  221. \fI--path\fR: Additional dir to add to the code path
  222. .IP
  223. \fI--default-libs\fR: Whether to use the default system added lib dirs (means you must add them all manually). Default is true
  224. .IP
  225. \fI--verbose\fR: Verbosity level, maybe between 0 and 3
  226. .IP
  227. \fI--dev-mode\fR: Symlink the applications and configuration into the release instead of copying
  228. .IP
  229. \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
  230. .IP
  231. \fI--override\fR: Provide an app name and a directory to override in the form <appname>:<app directory>
  232. .IP
  233. \fI--config\fR: The path to a config file
  234. .IP
  235. \fI--overlay_vars\fR: Path to a file of overlay variables
  236. .IP
  237. \fI--vm_args\fR: Path to a file to use for vm.args
  238. .IP
  239. \fI--sys_config\fR: Path to a file to use for sys.config
  240. .IP
  241. \fI--system_libs\fR: Path to dir of Erlang system libs
  242. .IP
  243. \fI--version\fR: Print relx version
  244. .IP
  245. \fI--root\fR: The project root directory
  246. .TP
  247. \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]
  248. Create relup of releases.
  249. .IP
  250. \fI--relname\fR: Specify the name for the release that will be generated
  251. .IP
  252. \fI--relvsn\fR: Specify the version for the release
  253. .IP
  254. \fI--goal\fR: Specify a target constraint on the system. These are usually the OTP
  255. .IP
  256. \fI--upfrom\fR: Only valid with relup target, specify the release to upgrade from
  257. .IP
  258. \fI--output-dir\fR: The output directory for the release. This is `./` by default.
  259. .IP
  260. \fI--help\fR: Print usage
  261. .IP
  262. \fI--lib-dir\fR: Additional dir that should be searched for OTP Apps
  263. .IP
  264. \fI--path\fR: Additional dir to add to the code path
  265. .IP
  266. \fI--default-libs\fR: Whether to use the default system added lib dirs (means you must add them all manually). Default is true
  267. .IP
  268. \fI--verbose\fR: Verbosity level, maybe between 0 and 3
  269. .IP
  270. \fI--dev-mode\fR: Symlink the applications and configuration into the release instead of copying
  271. .IP
  272. \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
  273. .IP
  274. \fI--override\fR: Provide an app name and a directory to override in the form <appname>:<app directory>
  275. .IP
  276. \fI--config\fR: The path to a config file
  277. .IP
  278. \fI--overlay_vars\fR: Path to a file of overlay variables
  279. .IP
  280. \fI--vm_args\fR: Path to a file to use for vm.args
  281. .IP
  282. \fI--sys_config\fR: Path to a file to use for sys.config
  283. .IP
  284. \fI--system_libs\fR: Path to dir of Erlang system libs
  285. .IP
  286. \fI--version\fR: Print relx version
  287. .IP
  288. \fI--root\fR: The project root directory
  289. .TP
  290. \fBreport\fR
  291. Provide a crash report to be sent to the rebar3 issues page.
  292. .TP
  293. \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]
  294. Run shell with project apps and deps in path.
  295. .IP
  296. \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.
  297. .IP
  298. \fI--name\fR: Gives a long name to the node.
  299. .IP
  300. \fI--sname\fR: Gives a short name to the node.
  301. .IP
  302. \fI--setcookie\fR: Sets the cookie if the node is distributed.
  303. .IP
  304. \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.
  305. .IP
  306. \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.
  307. .IP
  308. \fI--user_drv_args\fR: Arguments passed to user_drv start function for creating custom shells.
  309. .TP
  310. \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]
  311. Tar archive of release built of project.
  312. .IP
  313. \fI--relname\fR: Specify the name for the release that will be generated
  314. .IP
  315. \fI--relvsn\fR: Specify the version for the release
  316. .IP
  317. \fI--goal\fR: Specify a target constraint on the system. These are usually the OTP
  318. .IP
  319. \fI--upfrom\fR: Only valid with relup target, specify the release to upgrade from
  320. .IP
  321. \fI--output-dir\fR: The output directory for the release. This is `./` by default.
  322. .IP
  323. \fI--help\fR: Print usage
  324. .IP
  325. \fI--lib-dir\fR: Additional dir that should be searched for OTP Apps
  326. .IP
  327. \fI--path\fR: Additional dir to add to the code path
  328. .IP
  329. \fI--default-libs\fR: Whether to use the default system added lib dirs (means you must add them all manually). Default is true
  330. .IP
  331. \fI--verbose\fR: Verbosity level, maybe between 0 and 3
  332. .IP
  333. \fI--dev-mode\fR: Symlink the applications and configuration into the release instead of copying
  334. .IP
  335. \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
  336. .IP
  337. \fI--override\fR: Provide an app name and a directory to override in the form <appname>:<app directory>
  338. .IP
  339. \fI--config\fR: The path to a config file
  340. .IP
  341. \fI--overlay_vars\fR: Path to a file of overlay variables
  342. .IP
  343. \fI--vm_args\fR: Path to a file to use for vm.args
  344. .IP
  345. \fI--sys_config\fR: Path to a file to use for sys.config
  346. .IP
  347. \fI--system_libs\fR: Path to dir of Erlang system libs
  348. .IP
  349. \fI--version\fR: Print relx version
  350. .IP
  351. \fI--root\fR: The project root directory
  352. .TP
  353. \fBtree\fR [\fI-v\fR|\fI--verbose\fR]
  354. Print dependency tree.
  355. .IP
  356. \fI--verbose\fR: Print repo and branch/tag/ref for git and hg deps
  357. .TP
  358. \fBunlock\fR
  359. Unlock dependencies.
  360. .TP
  361. \fBupdate\fR
  362. Update package index.
  363. .TP
  364. \fBupgrade\fR
  365. Upgrade dependencies.
  366. .TP
  367. \fBversion\fR
  368. Print version for rebar and current Erlang.
  369. .TP
  370. \fBxref\fR
  371. Run cross reference analysis.
  372. .SH ENVIRONMENT
  373. Environment variables allow overall rebar3 control across command boundaries.
  374. .TP
  375. \fBREBAR_PROFILE\fR
  376. Choose a default profile. Defaults to \fBdefault\fR
  377. .TP
  378. \fBHEX_CDN\fR
  379. Pick an alternative hex mirror.
  380. .TP
  381. \fBREBAR_CACHE_DIR\fR
  382. Location of the directory for local cache. Defaults to \fIhex.pm\fB.
  383. .TP
  384. \fBQUIET\fR
  385. Only display errors.
  386. .TP
  387. \fBDEBUG\fR
  388. Display debug information.
  389. .TP
  390. \fBREBAR_COLOR\fR=\fIhigh\fR|\fIlow\fR
  391. How much color to show in the terminal. Defaults to \fIhigh\fR.
  392. .TP
  393. \fBREBAR_CONFIG\fR
  394. Name of rebar configuration files. Defaults to \fIrebar.config\fR
  395. .SH Configuration File Options
  396. See \fIhttp://www.rebar3.org/v3.0/docs/configuration\fR