Dist::Zilla::App::Command::cpanm - installs your dist using cpanminus
version 1.0.2
$ dzil cpanm
Installs your distribution as if you had typed:
dzil install --install-command="cpanm ." # Really no fun at all!
Options that will be passed to the cpanm script can come in via environment (DZ_CPANM_OPTIONS), or your Dist::Zilla configuration (~/.dzil/config.ini):
[%CPANMinus] options = --interactive --verbose --sudo
The environment variable supersedes any setting in the config; that is unless it is prefixed with a +, in which case it will be appended to the value pulled from the configuration file.
+
Examples
$ export DZ_CPANM_OPTIONS='--verbose --interactive' $ dzil cpanm
These options will override any you have in the configuration file.
--sudo
config.ini
$ DZ_CPANM_OPTIONS='+--sudo' dzil cpanm
The --sudo option is appended to those in the configuration file.
"install" in Dist::Zilla::Dist::Builder
https://github.com/cpanic/Dist-Zilla-App-Command-cpanm
http://search.cpan.org/dist/Dist-Zilla-App-Command-cpanm/lib/Dist/Zilla/App/Command/cpan.pm
You can find documentation for this module with the perldoc command.
perldoc Dist::Zilla::App::Command::cpanm
Shamelessly butchered Richard Signes Dist::Zilla::App::Command::install code.
The need was great.
Iain Campbell <cpanic@cpan.org>
This software is copyright (c) 2015 by Iain Campbell.
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::App::Command::cpanm, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dist::Zilla::App::Command::cpanm
CPAN shell
perl -MCPAN -e shell install Dist::Zilla::App::Command::cpanm
For more information on module installation, please visit the detailed CPAN module installation guide.