HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

mix — Build tool that provides tasks for creating, compiling, and testing Elixir projects, managing its de

Submitted by: @import:tldr-pages··
0
Viewed 0 times
providescommandbuildclitoolthattasksmix

Problem

How to use the mix command: Build tool that provides tasks for creating, compiling, and testing Elixir projects, managing its dependencies, and more. More information: <https://hexdocs.pm/mix/index.html>.

Solution

mix — Build tool that provides tasks for creating, compiling, and testing Elixir projects, managing its dependencies, and more. More information: <https://hexdocs.pm/mix/index.html>.

Execute a particular file:
mix run {{my_script.exs}}


Create a new project:
mix new {{project_name}}


Compile project:
mix compile


Run project tests:
mix test


Display help:
mix help

Code Snippets

Execute a particular file

mix run {{my_script.exs}}

Create a new project

mix new {{project_name}}

Compile project

mix compile

Run project tests

mix test

Display help

mix help

Context

tldr-pages: common/mix

Revisions (0)

No revisions yet.