/Elixir 1.11

mix local.hex

Installs Hex locally.

mix local.hex

If installing a precompiled Hex does not work, you can compile and install Hex directly with this command:

mix archive.install github hexpm/hex branch latest

Command line options

  • --force - forces installation without a shell prompt; primarily intended for automation in build systems like make

  • --if-missing - performs installation only if Hex is not installed yet; intended to avoid repeatedly reinstalling Hex in automation when a script may be run multiple times

If both options are set, --force takes precedence.


If you want to change the default mirror used for fetching Hex, set the HEX_MIRROR environment variable.

© 2012 Plataformatec
Licensed under the Apache License, Version 2.0.