Mix.Tasks.Phoenix.New
Creates a new Phoenix project. It expects the path of the project as argument.
mix phoenix.new PATH [--module MODULE] [--app APP]
A project at the given PATH will be created. The
application name and module name will be retrieved
from the path, unless --module or --app is given.
Options
--app- the name of the OTP application--module- the name of the base module in the generated skeleton--no-brunch- do not generate brunch files for static asset building--no-ecto- do not generate ecto files for the model layer
Examples
mix phoenix.new hello_world
Is equivalent to:
mix phoenix.new hello_world --module HelloWorld
Without brunch:
mix phoenix.new ~/Workspace/hello_world --no-brunch
Summary↑
| run(argv) | Callback implementation of |
| run(app, mod, path, opts) |
Functions
Callback implementation of Mix.Task.run/1.