Mix v1.3.2 Mix.Tasks.Local.Rebar

Fetches a copy of rebar or rebar3 from the given path or URL.

It defaults to safely download a Rebar copy from Hex’s CDN. However, a URL can be given as argument, usually from an existing local copy of Rebar:

mix local.rebar rebar path/to/rebar
mix local.rebar rebar3 path/to/rebar

If not specified both rebar and rebar3 will be fetched.

The local copy is stored in your MIX_HOME (defaults to ~/.mix). This version of Rebar will be used as required by mix deps.compile.

Command line options

  • rebar PATH - specify a path or URL for rebar

  • rebar3 PATH - specify a path or URL for rebar3

  • --sha512 - checks the archive matches the given SHA-512 checksum

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

Mirrors

If you want to change the default mirror to use for fetching rebar please set the HEX_MIRROR environment variable.

Summary

Functions

Callback implementation for Mix.Task.run/1

Functions

run(argv)

Specs

run(OptionParser.argv) :: true

Callback implementation for Mix.Task.run/1.