| 1 |
# Using Haxelib |
| 2 |
|
| 3 |
If the `haxelib` command is executed without any arguments, it prints an exhaustive list of all available arguments. |
| 4 |
|
| 5 |
The following commands are available: |
| 6 |
|
| 7 |
<div class="row"> |
| 8 |
<div class="span3"> |
| 9 |
<h4><a href="#basic">Basic</a></h4> |
| 10 |
<ul> |
| 11 |
<li><a href="#install">install</a></li> |
| 12 |
<li><a href="#update">update</a></li> |
| 13 |
<li><a href="#remove">remove</a></li> |
| 14 |
<li><a href="#list">list</a></li> |
| 15 |
<li><a href="#set">set</a></li> |
| 16 |
</ul> |
| 17 |
</div> |
| 18 |
|
| 19 |
<div class="span3"> |
| 20 |
<h4><a href="#information">Information</a></h4> |
| 21 |
<ul> |
| 22 |
<li><a href="#search">search</a></li> |
| 23 |
<li><a href="#info">info</a></li> |
| 24 |
<li><a href="#user">user</a></li> |
| 25 |
<li><a href="#config">config</a></li> |
| 26 |
<li><a href="#path">path</a></li> |
| 27 |
<li><a href="#libpath">libpath</a></li> |
| 28 |
<li><a href="#version">version</a></li> |
| 29 |
<li><a href="#help">help</a></li> |
| 30 |
</ul> |
| 31 |
</div> |
| 32 |
|
| 33 |
<div class="span3"> |
| 34 |
<h4><a href="#development">Development</a></h4> |
| 35 |
<ul> |
| 36 |
<li><a href="#submit">submit</a></li> |
| 37 |
<li><a href="#register">register</a></li> |
| 38 |
<li><a href="#dev">dev</a></li> |
| 39 |
<li><a href="#git">git</a></li> |
| 40 |
<li><a href="#hg">hg</a></li> |
| 41 |
</ul> |
| 42 |
</div> |
| 43 |
</div> |
| 44 |
|
| 45 |
<div class="row"> |
| 46 |
<div class="span3"> |
| 47 |
<h4><a href="#miscellaneous">Miscellaneous</a></h4> |
| 48 |
<ul> |
| 49 |
<li><a href="#setup">setup</a></li> |
| 50 |
<li><a href="#newrepo">newrepo</a></li> |
| 51 |
<li><a href="#deleterepo">deleterepo</a></li> |
| 52 |
<li><a href="#convertxml">convertxml</a></li> |
| 53 |
<li><a href="#run">run</a></li> |
| 54 |
<li><a href="#proxy">proxy</a></li> |
| 55 |
</ul> |
| 56 |
</div> |
| 57 |
|
| 58 |
<div class="span3"> |
| 59 |
<h4><a href="#flags">Flags</a></h4> |
| 60 |
<ul> |
| 61 |
<li><a href="#flat">--flat</a></li> |
| 62 |
<li><a href="#always">--always</a></li> |
| 63 |
<li><a href="#system">--system</a></li> |
| 64 |
<li><a href="#debug">--debug</a></li> |
| 65 |
<li><a href="#quiet">--quiet</a></li> |
| 66 |
<li><a href="#never">--never</a></li> |
| 67 |
<li><a href="#global">--global</a></li> |
| 68 |
</ul> |
| 69 |
</div> |
| 70 |
|
| 71 |
<div class="span3"> |
| 72 |
<h4><a href="#parameters">Parameters</a></h4> |
| 73 |
<ul> |
| 74 |
<li><a href="#cwd">-cwd</a></li> |
| 75 |
<li><a href="#notimeout">-no-timeout</a></li> |
| 76 |
<li><a href="#R">-R</a></li> |
| 77 |
</ul> |
| 78 |
</div> |
| 79 |
</div> |
| 80 |
|
| 81 |
Also, following environment variables affect haxelib behavior if set: |
| 82 |
|
| 83 |
<div class="row"> |
| 84 |
<div class="span3"> |
| 85 |
<h4><a href="#environment_variables">Environment variables</a></h4> |
| 86 |
<ul> |
| 87 |
<li><a href="#HAXELIB_NO_SSL">HAXELIB_NO_SSL</a></li> |
| 88 |
<li><a href="#HAXELIB_REMOTE">HAXELIB_REMOTE</a></li> |
| 89 |
</ul> |
| 90 |
</div> |
| 91 |
</div> |
| 92 |
|
| 93 |
<a name="basic" class="anch"></a> |
| 94 |
|
| 95 |
# Basic |
| 96 |
|
| 97 |
<a name="install" class="anch"></a> |
| 98 |
|
| 99 |
## haxelib install |
| 100 |
|
| 101 |
Installs the given project. You can optionally specify a specific version to be installed. By default, latest released version will be installed. |
| 102 |
|
| 103 |
### haxelib install [project-name] |
| 104 |
Installs latests released version of the library. |
| 105 |
``` |
| 106 |
haxelib install actuate |
| 107 |
``` |
| 108 |
|
| 109 |
### haxelib install [project-name] [version] |
| 110 |
Installs a specific version of the library. |
| 111 |
``` |
| 112 |
haxelib install actuate 1.8.2 |
| 113 |
``` |
| 114 |
|
| 115 |
### haxelib install all |
| 116 |
Install all dependencies in all hxml files |
| 117 |
``` |
| 118 |
haxelib install all |
| 119 |
``` |
| 120 |
|
| 121 |
### haxelib install [hxml-file] |
| 122 |
Install all dependencies listed in hxml file |
| 123 |
|
| 124 |
``` |
| 125 |
haxelib install build.hxml |
| 126 |
``` |
| 127 |
|
| 128 |
### haxelib install [library-file] |
| 129 |
|
| 130 |
Install the project contained in the zip file. |
| 131 |
``` |
| 132 |
haxelib install actuate.zip |
| 133 |
``` |
| 134 |
|
| 135 |
<a name="update" class="anch"></a> |
| 136 |
|
| 137 |
## haxelib update [project-name] |
| 138 |
|
| 139 |
Update a single library to the latest version. |
| 140 |
``` |
| 141 |
haxelib update minject |
| 142 |
``` |
| 143 |
|
| 144 |
### haxelib update |
| 145 |
|
| 146 |
Update all the installed projects to their latest version. This command prompts a confirmation for each updating project. |
| 147 |
``` |
| 148 |
haxelib update |
| 149 |
``` |
| 150 |
|
| 151 |
|
| 152 |
<a name="remove" class="anch"></a> |
| 153 |
|
| 154 |
## haxelib remove |
| 155 |
|
| 156 |
Remove a complete project or only a specified version if specified. |
| 157 |
Note: this doesn't remove the library from the registry but from the machine it is installed on. |
| 158 |
|
| 159 |
|
| 160 |
### haxelib remove [project-name] |
| 161 |
Remove all versions of the project |
| 162 |
``` |
| 163 |
haxelib remove format |
| 164 |
``` |
| 165 |
|
| 166 |
### haxelib remove [project-name] [version] |
| 167 |
|
| 168 |
Remove the specified version |
| 169 |
``` |
| 170 |
haxelib remove format 3.1.2 |
| 171 |
``` |
| 172 |
|
| 173 |
<a name="list" class="anch"></a> |
| 174 |
|
| 175 |
## haxelib list [search] |
| 176 |
|
| 177 |
List all the installed projects and their versions. For each project, the version surrounded by brackets is the current one. |
| 178 |
|
| 179 |
### haxelib list |
| 180 |
|
| 181 |
|
| 182 |
List all installed projects |
| 183 |
``` |
| 184 |
haxelib list |
| 185 |
``` |
| 186 |
|
| 187 |
### haxelib list [search] |
| 188 |
|
| 189 |
List all projects with "ufront" in their name |
| 190 |
``` |
| 191 |
haxelib list ufront |
| 192 |
``` |
| 193 |
|
| 194 |
|
| 195 |
<a name="set" class="anch"></a> |
| 196 |
|
| 197 |
### haxelib set |
| 198 |
|
| 199 |
``` |
| 200 |
haxelib set [project-name] [version] |
| 201 |
haxelib set tink_core 1.0.0-rc.8 |
| 202 |
``` |
| 203 |
|
| 204 |
> Change the current version for a given project. The version must be already installed. |
| 205 |
|
| 206 |
|
| 207 |
|
| 208 |
<a name="information" class="anch"></a> |
| 209 |
|
| 210 |
# Information |
| 211 |
|
| 212 |
|
| 213 |
|
| 214 |
<a name="search" class="anch"></a> |
| 215 |
|
| 216 |
### haxelib search |
| 217 |
|
| 218 |
``` |
| 219 |
haxelib search [word] |
| 220 |
haxelib search tween |
| 221 |
``` |
| 222 |
|
| 223 |
> Get a list of all haxelib projects with the specified word in the name or description. |
| 224 |
|
| 225 |
|
| 226 |
|
| 227 |
<a name="info" class="anch"></a> |
| 228 |
|
| 229 |
### haxelib info |
| 230 |
|
| 231 |
``` |
| 232 |
haxelib info [project-name] |
| 233 |
haxelib info openfl |
| 234 |
``` |
| 235 |
|
| 236 |
> Show information about this project, including the owner, license, description, website, tags, current version, and release notes for all versions. |
| 237 |
|
| 238 |
|
| 239 |
|
| 240 |
<a name="user" class="anch"></a> |
| 241 |
|
| 242 |
### haxelib user |
| 243 |
|
| 244 |
``` |
| 245 |
haxelib user [user-name] |
| 246 |
haxelib user jason |
| 247 |
``` |
| 248 |
|
| 249 |
> Show information on a given Haxelib user and their projects. |
| 250 |
|
| 251 |
|
| 252 |
|
| 253 |
<a name="config" class="anch"></a> |
| 254 |
|
| 255 |
### haxelib config |
| 256 |
|
| 257 |
``` |
| 258 |
haxelib config |
| 259 |
``` |
| 260 |
|
| 261 |
> Print the Haxelib repository path. This is where each library will be installed to. You can modify the path using <code>haxelib [setup](#setup)</code>. |
| 262 |
> |
| 263 |
> If you are in a local repository and want to print the global Haxelib repository path do <code>haxelib [--global](#global) config</code>. |
| 264 |
|
| 265 |
|
| 266 |
|
| 267 |
<a name="path" class="anch"></a> |
| 268 |
|
| 269 |
### haxelib path |
| 270 |
|
| 271 |
``` |
| 272 |
haxelib path [project-name[:version]...] |
| 273 |
haxelib path hscript |
| 274 |
haxelib path hscript:2.0.0 |
| 275 |
haxelib path hscript erazor buddy |
| 276 |
haxelib path hscript erazor buddy:1.0.0 |
| 277 |
``` |
| 278 |
Example output : |
| 279 |
``` |
| 280 |
haxelib path openfl hxcpp format |
| 281 |
--macro openfl._internal.utils.ExtraParams.include() |
| 282 |
/usr/local/lib/haxe/lib/openfl/6.5.3/ |
| 283 |
-D openfl=6.5.3 |
| 284 |
/usr/local/lib/haxe/lib/hxcpp/git/ |
| 285 |
-D hxcpp=3.4.0 |
| 286 |
/usr/local/lib/haxe/lib/format/3,3,0/ |
| 287 |
-D format=3.3.0 |
| 288 |
``` |
| 289 |
|
| 290 |
> Prints the source paths to one or more libraries, as well as any dependencies and compiler definitions required by those libraries. |
| 291 |
> |
| 292 |
> You can specify a version by appending `:version` to the library name. If no version is specified the set version is used. |
| 293 |
> |
| 294 |
> If a [development](#dev) version is set it'll be used even if a version is specified. |
| 295 |
> |
| 296 |
> This command is used by Haxe compiler to get required paths and flags for libraries. |
| 297 |
|
| 298 |
|
| 299 |
|
| 300 |
<a name="libpath" class="anch"></a> |
| 301 |
|
| 302 |
### haxelib libpath |
| 303 |
|
| 304 |
``` |
| 305 |
haxelib libpath [project-name[:version]...] |
| 306 |
haxelib libpath hscript |
| 307 |
haxelib libpath hscript:2.0.0 |
| 308 |
haxelib libpath hscript erazor buddy |
| 309 |
haxelib libpath hscript erazor buddy:1.0.0 |
| 310 |
``` |
| 311 |
Example output : |
| 312 |
``` |
| 313 |
haxelib libpath hxcpp format hscript |
| 314 |
/usr/local/lib/haxe/lib/hxcpp/git/ |
| 315 |
/usr/local/lib/haxe/lib/format/3,3,0/ |
| 316 |
/usr/local/lib/haxe/lib/hxcpp/2,1,1/ |
| 317 |
``` |
| 318 |
|
| 319 |
> Prints the root path of one or more libraries. Will output 1 path per line. |
| 320 |
> |
| 321 |
> You can specify a version by appending `:version` to the library name. If no version is specified the set version is used. |
| 322 |
> |
| 323 |
> If a [development](#dev) version is set it'll be used even if a version is specified. |
| 324 |
|
| 325 |
|
| 326 |
|
| 327 |
<a name="version" class="anch"></a> |
| 328 |
|
| 329 |
### haxelib version |
| 330 |
|
| 331 |
``` |
| 332 |
haxelib version |
| 333 |
``` |
| 334 |
|
| 335 |
> Prints the version of Haxelib you are using. |
| 336 |
> |
| 337 |
> You can change the version of haxelib you are using with <code>haxelib --global [set](#set) haxelib version</code> |
| 338 |
|
| 339 |
|
| 340 |
|
| 341 |
<a name="help" class="anch"></a> |
| 342 |
|
| 343 |
### haxelib help |
| 344 |
|
| 345 |
``` |
| 346 |
haxelib help |
| 347 |
``` |
| 348 |
|
| 349 |
> Print the list of available arguments. |
| 350 |
|
| 351 |
|
| 352 |
|
| 353 |
<a name="development" class="anch"></a> |
| 354 |
|
| 355 |
# Development |
| 356 |
|
| 357 |
|
| 358 |
|
| 359 |
<a name="submit" class="anch"></a> |
| 360 |
|
| 361 |
## haxelib submit |
| 362 |
|
| 363 |
``` |
| 364 |
haxelib submit [project.zip] |
| 365 |
haxelib submit detox.zip |
| 366 |
haxelib submit |
| 367 |
``` |
| 368 |
|
| 369 |
> Submits a zip package to Haxelib so other users can install it. |
| 370 |
> |
| 371 |
> Alternatively you can run `haxelib submit` without argument to have Haxelib zip and submit the current directory (excluding names starting with a dot). |
| 372 |
> |
| 373 |
> If the user name is unknown, you'll be first asked to register an account. |
| 374 |
> If more the project has more than one developer, it will ask you which user you wish to submit as. |
| 375 |
> If the user already exists, you will be prompted for your password. |
| 376 |
> |
| 377 |
> If you want to modify the project url or description, simply modify your `haxelib.json` (keeping version information unchanged) and submit it again. |
| 378 |
|
| 379 |
|
| 380 |
|
| 381 |
<a name="register" class="anch"></a> |
| 382 |
|
| 383 |
### haxelib register |
| 384 |
|
| 385 |
``` |
| 386 |
haxelib register [username] [email] [fullname] [password] [passwordconfirmation] |
| 387 |
``` |
| 388 |
|
| 389 |
> Register a new developer account to be used when [submitting](#submit). |
| 390 |
> |
| 391 |
> Missing parameters will be asked interactively. |
| 392 |
|
| 393 |
|
| 394 |
|
| 395 |
<a name="dev" class="anch"></a> |
| 396 |
|
| 397 |
### haxelib dev |
| 398 |
|
| 399 |
``` |
| 400 |
haxelib dev [project-name] [directory] |
| 401 |
haxelib dev starling ../starling/ # Relative path to starling source. |
| 402 |
haxelib dev starling /opt/starling/ # Absolute path to starling source. |
| 403 |
haxelib dev starling # Cancel dev, use installed version. |
| 404 |
``` |
| 405 |
|
| 406 |
> Set a development directory for the given project. |
| 407 |
> This directory should either contain a `haxelib.json` or the source `*.hx` files. |
| 408 |
> This command is useful when developing a library and testing changes on a project. |
| 409 |
> |
| 410 |
> If the directory is omitted the development version of the library will be deactivated. |
| 411 |
|
| 412 |
|
| 413 |
<a name="git" class="anch"></a> |
| 414 |
|
| 415 |
### haxelib git |
| 416 |
|
| 417 |
``` |
| 418 |
haxelib git [project-name] [git-clone-path] [branch] |
| 419 |
haxelib git minject https://github.com/massiveinteractive/minject.git # Use HTTP git path. |
| 420 |
haxelib git minject [email protected]:massiveinteractive/minject.git # Use SSH git path. |
| 421 |
haxelib git minject [email protected]:massiveinteractive/minject.git v2 # Checkout branch or tag `v2`. |
| 422 |
``` |
| 423 |
|
| 424 |
> Use a git repository as library. |
| 425 |
> |
| 426 |
> This is useful for using a more up-to-date development version, a fork of the original project, or for having a private library that you do not wish to post to Haxelib. |
| 427 |
> |
| 428 |
> When you use `haxelib update` any libraries that are installed using GIT will automatically pull the latest version. |
| 429 |
|
| 430 |
|
| 431 |
|
| 432 |
<a name="hg" class="anch"></a> |
| 433 |
|
| 434 |
### haxelib hg |
| 435 |
|
| 436 |
``` |
| 437 |
haxelib hg [project-name] [mercurial-clone-path] [branch] |
| 438 |
``` |
| 439 |
|
| 440 |
> Use a mercurial repository as library. |
| 441 |
> |
| 442 |
> Usage is identical to <code>haxelib [git](#git)</code>. |
| 443 |
|
| 444 |
|
| 445 |
|
| 446 |
<a name="miscellaneous" class="anch"></a> |
| 447 |
|
| 448 |
# Miscellaneous |
| 449 |
|
| 450 |
|
| 451 |
|
| 452 |
<a name="setup" class="anch"></a> |
| 453 |
|
| 454 |
### haxelib setup |
| 455 |
|
| 456 |
``` |
| 457 |
haxelib setup [path] |
| 458 |
``` |
| 459 |
|
| 460 |
> Set the Haxelib repository path. To print current path use <code>haxelib [config](#config)</code>. |
| 461 |
> |
| 462 |
> Missing parameter will be asked interactively. |
| 463 |
|
| 464 |
|
| 465 |
|
| 466 |
<a name="newrepo" class="anch"></a> |
| 467 |
|
| 468 |
### haxelib newrepo |
| 469 |
|
| 470 |
``` |
| 471 |
haxelib newrepo |
| 472 |
``` |
| 473 |
|
| 474 |
> Create a local repository in the current directory, to remove it use <code>haxelib [deleterepo](#deleterepo)</code>. |
| 475 |
> |
| 476 |
> [Basic](#basic) commands will only use the libraries stored in the local repository when you are located in this directory. |
| 477 |
> |
| 478 |
> To access the global repository add the <code>[--global](#global)</code> flag. |
| 479 |
|
| 480 |
|
| 481 |
|
| 482 |
<a name="deleterepo" class="anch"></a> |
| 483 |
|
| 484 |
### haxelib deleterepo |
| 485 |
|
| 486 |
``` |
| 487 |
haxelib deleterepo |
| 488 |
``` |
| 489 |
|
| 490 |
> Remove a local repository created with <code>haxelib [newrepo](#newrepo)</code> from the current directory. |
| 491 |
> |
| 492 |
> This will remove all libraries contained in it. |
| 493 |
|
| 494 |
|
| 495 |
|
| 496 |
<a name="convertxml" class="anch"></a> |
| 497 |
|
| 498 |
### haxelib convertxml |
| 499 |
|
| 500 |
``` |
| 501 |
haxelib convertxml |
| 502 |
``` |
| 503 |
|
| 504 |
> Convert the file `haxelib.xml` from the current directory in the Haxelib 2 xml specification into a file named `haxelib.json` which can be used by the current Haxelib. |
| 505 |
|
| 506 |
|
| 507 |
<a name="run" class="anch"></a> |
| 508 |
|
| 509 |
### haxelib run |
| 510 |
|
| 511 |
``` |
| 512 |
haxelib run [project-name[:version]] [parameters] |
| 513 |
haxelib run openfl |
| 514 |
haxelib run openfl:2.6.0 |
| 515 |
haxelib run openfl setup |
| 516 |
haxelib run openfl create DisplayingABitmap |
| 517 |
``` |
| 518 |
|
| 519 |
> Libraries with either a `run.n` helper or a main class defined in `haxelib.json`, can be executed using `haxelib run`. |
| 520 |
> |
| 521 |
> You can specify the version to run by appending `:version`, if the library has a [development](#dev) version set the version will be ignored. |
| 522 |
> |
| 523 |
> The library will receive the `HAXELIB_RUN` environment variable with value `"1"` and `HAXELIB_RUN_NAME` with the name of the library as value. |
| 524 |
|
| 525 |
|
| 526 |
<a name="proxy" class="anch"></a> |
| 527 |
|
| 528 |
### haxelib proxy |
| 529 |
|
| 530 |
``` |
| 531 |
haxelib proxy [host port [username password]] |
| 532 |
``` |
| 533 |
|
| 534 |
> Configure Haxelib to use a HTTP proxy. |
| 535 |
> |
| 536 |
> Missing parameters will be asked interactively. |
| 537 |
> |
| 538 |
> Rerun with an empty host to deactivate the current proxy. |
| 539 |
|
| 540 |
|
| 541 |
|
| 542 |
<a name="flags" class="anch"></a> |
| 543 |
|
| 544 |
## Flags |
| 545 |
|
| 546 |
|
| 547 |
|
| 548 |
**Warning**: when using the [run](#run) command you need to specify the flags before `run`, |
| 549 |
otherwise they'll be passed as arguments to the library. |
| 550 |
|
| 551 |
|
| 552 |
|
| 553 |
<a name="flat" class="anch"></a> |
| 554 |
|
| 555 |
### haxelib --flat |
| 556 |
|
| 557 |
``` |
| 558 |
haxelib --flat |
| 559 |
``` |
| 560 |
|
| 561 |
> Used by <code>haxelib [git](#git)</code>, do not add the `--recursive` flag when cloning a git repository. |
| 562 |
|
| 563 |
|
| 564 |
|
| 565 |
<a name="always" class="anch"></a> |
| 566 |
|
| 567 |
### haxelib --always |
| 568 |
|
| 569 |
``` |
| 570 |
haxelib --always |
| 571 |
``` |
| 572 |
|
| 573 |
> Answer all questions with yes, cannot be used at the same time as [--never](#never). |
| 574 |
|
| 575 |
|
| 576 |
|
| 577 |
<a name="system" class="anch"></a> |
| 578 |
|
| 579 |
### haxelib --system |
| 580 |
|
| 581 |
``` |
| 582 |
haxelib --system |
| 583 |
``` |
| 584 |
|
| 585 |
> Use the version of Haxelib installed with Haxe in the system instead of the one currently [set](#set). |
| 586 |
> |
| 587 |
> Useful if your Haxelib update was broken. |
| 588 |
|
| 589 |
|
| 590 |
|
| 591 |
<a name="debug" class="anch"></a> |
| 592 |
|
| 593 |
### haxelib --debug |
| 594 |
|
| 595 |
``` |
| 596 |
haxelib --debug |
| 597 |
``` |
| 598 |
|
| 599 |
> Display debug information during the execution, cannot be used at the same time as [--quiet](#quiet). |
| 600 |
|
| 601 |
|
| 602 |
|
| 603 |
<a name="quiet" class="anch"></a> |
| 604 |
|
| 605 |
### haxelib --quiet |
| 606 |
|
| 607 |
``` |
| 608 |
haxelib --quiet |
| 609 |
``` |
| 610 |
|
| 611 |
> Display less messages during the execution, cannot be used at the same time as [--debug](#debug). |
| 612 |
|
| 613 |
|
| 614 |
|
| 615 |
<a name="never" class="anch"></a> |
| 616 |
|
| 617 |
### haxelib --never |
| 618 |
|
| 619 |
``` |
| 620 |
haxelib --never |
| 621 |
``` |
| 622 |
|
| 623 |
> Answer all questions with no, cannot be used at the same time as [--always](#always). |
| 624 |
|
| 625 |
|
| 626 |
|
| 627 |
<a name="global" class="anch"></a> |
| 628 |
|
| 629 |
### haxelib --global |
| 630 |
|
| 631 |
``` |
| 632 |
haxelib --global |
| 633 |
``` |
| 634 |
|
| 635 |
> Force the usage of the global repository even if inside a local repository created with <code>haxelib [newrepo](#newrepo)</code>. |
| 636 |
|
| 637 |
|
| 638 |
|
| 639 |
<a name="parameters" class="anch"></a> |
| 640 |
|
| 641 |
# Parameters |
| 642 |
|
| 643 |
|
| 644 |
|
| 645 |
**Warning**: when using the [run](#run) command you need to specify the parameters before `run`, |
| 646 |
otherwise they'll be passed as arguments to the library. |
| 647 |
|
| 648 |
|
| 649 |
|
| 650 |
<a name="cwd" class="anch"></a> |
| 651 |
|
| 652 |
### haxelib -cwd |
| 653 |
|
| 654 |
``` |
| 655 |
haxelib -cwd [dir] |
| 656 |
``` |
| 657 |
|
| 658 |
> Act like the Haxelib command was run from another repository. Affect all commands that use the "current directory". |
| 659 |
|
| 660 |
|
| 661 |
|
| 662 |
<a name="notimeout" class="anch"></a> |
| 663 |
|
| 664 |
### haxelib -no-timeout |
| 665 |
|
| 666 |
``` |
| 667 |
haxelib -no-timeout |
| 668 |
``` |
| 669 |
|
| 670 |
> Remove timeout when connecting to the Haxelib server, downloading or [submitting](#submit) a library. |
| 671 |
|
| 672 |
|
| 673 |
|
| 674 |
<a name="R" class="anch"></a> |
| 675 |
|
| 676 |
### haxelib -R |
| 677 |
|
| 678 |
``` |
| 679 |
haxelib -R [host:port[/dir]] |
| 680 |
``` |
| 681 |
|
| 682 |
> Allow the usage of a custom Haxelib server instead of `lib.haxe.org`. |
| 683 |
|
| 684 |
<a name="environment_variables" class="anch"></a> |
| 685 |
|
| 686 |
# Environment Variables |
| 687 |
|
| 688 |
<a name="HAXELIB_NO_SSL" class="anch"></a> |
| 689 |
|
| 690 |
## HAXELIB_NO_SSL |
| 691 |
|
| 692 |
If `HAXELIB_NO_SSL` is set to `1` or `true`, then haxelib client will use http instead of https. |
| 693 |
|
| 694 |
## HAXELIB_REMOTE |
| 695 |
|
| 696 |
`HAXELIB_REMOTE` may contain a url to a custom Haxelib server instead of `https://lib.haxe.org/`. |
| 697 |
However, if <a href="#R">-R</a> command line argument is provided, then `HAXELIB_REMOTE` is ignored. |