Mix.Tasks.New

Creates a new Elixir project. It expects the path of the project as argument.

mix new PATH [--bare] [--module MODULE] [--umbrella]

A project at the given PATH will be created. The application name and module name will be retrieved from the path, unless --module is given.

A --bare option can be given to not generate an OTP application skeleton. Normally an app is generated with a supervisor and an application module that starts the supervisor.

An --umbrella option can be given to generate an umbrella project.

Examples

mix new hello_world

Is equivalent to:

mix new hello_world --module HelloWorld

To generate an app without supervisor and application behaviours:

mix new hello_world --bare
Source

Summary

run(argv)

Callback implementation of Mix.Task.run/1

Functions

run(argv)

Callback implementation of Mix.Task.run/1.

Source