mix run [file]

Starts the current application and runs code

Arguments

NameDescription
file

Options

NameDescription
--config <file>Loads the given configuration files
-e, --eval <code>Evaluates the given code
-r, --require <file|pattern>Executes the given pattern/file
-p, --parallel <file|pattern>Executes the given pattern/file
--preload-modulesPreloads all modules defined in applications
--no-compileDoes not compile even if files require compilation
--no-deps-checkDoes not check dependencies
--no-archives-checkDoes not check archives
--no-haltDoes not halt the system after running the command
--no-mix-exsAllows the command to run even if there is no mix.exs
--no-startDoes not start applications after compilation
--no-elixir-version-checkDoes not check the Elixir version from mix.exs