Is there a way to install a dependency for an Elixir project directly through the command line using mix or mix hex?
I am aware of the option for searching the hex registry via
$ mix hex.search httpoison
Package Version URL
httpoison 0.11.0 https://hex.pm/packages/httpoison
However, I am looking for something like
$ mix hex.install httpoison
which will modify my mix.exs file, adding the name and most recent version of the dependency to the deps function and the application name to the applications list and then run
$ mix deps.get
to pull and compile the dependency.