Task: Use Mix to Create Our New Project

Mix is a command-line utility that manages Elixir projects. Use it to create new projects, manage a project’s dependencies, run tests, and run your code. If you have Elixir installed, you also have mix. Try running it now:

 
$ ​mix help
 
mix # Run the default task (current: mix run)
 
mix archive # List all archives
 
mix archive.build # Archive this project into a .ez file
 
: : : :
 
mix new # Create a new Elixir project
 
mix run # Run the given file or expression
 
mix test # Run a project's tests
 
iex -S mix # Start IEx and run the default task

This is a list of the standard tasks that come with mix. (Your list may be a little different, depending on your version of Elixir.) For more information on a ...

Get Programming Elixir now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.