mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
28 lines
416 B
Markdown
28 lines
416 B
Markdown
![]() |
# mix
|
||
|
|
||
|
> Mix is a build tool that provides tasks for creating, compiling, and testing Elixir projects, managing its dependencies, and more.
|
||
|
|
||
|
- List all mix commands:
|
||
|
|
||
|
`mix help`
|
||
|
|
||
|
- Execute particular file:
|
||
|
|
||
|
`mix run {{my_script.exs}}`
|
||
|
|
||
|
- Create a new project:
|
||
|
|
||
|
`mix new {{project_name}}`
|
||
|
|
||
|
- Compile project:
|
||
|
|
||
|
`mix compile`
|
||
|
|
||
|
- Start an iex session inside the project:
|
||
|
|
||
|
`iex -S mix`
|
||
|
|
||
|
- Run project tests:
|
||
|
|
||
|
`mix test`
|