Dist::Zilla::App::Command::new - mint a new dist
version 6.009
Creates a new Dist-Zilla based distribution under the current directory.
$ dzil new Main::Module::Name
There are two arguments, -p and -P. -P specify the minting profile provider and -p - the profile name.
-p
-P
The default profile provider first looks in the ~/.dzil/profiles/$profile_name and then among standard profiles, shipped with Dist::Zilla. For example:
$ dzil new -p work Corporate::Library
This command would instruct dzil to look in ~/.dzil/profiles/work for a profile.ini (or other "profile" config file). If no profile name is given, dzil will look for the default profile. If no default directory exists, it will use a very simple configuration shipped with Dist::Zilla.
dzil
default
$ dzil new -P Foo Corporate::Library
This command would instruct dzil to consult the Foo provider about the directory of 'default' profile.
Furthermore, it is possible to specify the default minting provider and profile in the ~/.dzil/config.ini file, for example:
[%Mint] provider = FooCorp profile = work
Ricardo SIGNES 😏 <rjbs@cpan.org>
This software is copyright (c) 2017 by Ricardo SIGNES.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Dist::Zilla, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dist::Zilla
CPAN shell
perl -MCPAN -e shell install Dist::Zilla
For more information on module installation, please visit the detailed CPAN module installation guide.