Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

441 rinda
16 KiB

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