CPANFILE-DUMP(1p)
β¨ NAME β¨
okay so cpanfile-dump β it dumps the prerequisites out of a cpanfile, bestie π
πΈ SYNOPSIS πΈ
# Install typical required and recommended modules
cpan `cpanfile-dump`
# Skip configures phase
cpan `cpanfile-dump --no-configure`
# Also include develop phase and suggests type
cpan `cpanfile-dump --develop --suggests`
# Include a feature
cpan `cpanfile-dump --with-feature=sqlite`
π DESCRIPTION π
So this script reads the prereqs out of a cpanfile and dumps a raw list of them to standard output. Why would you even want that? Because it's literally perfect for piping them as input into another program that doesn't support reading cpanfile directly β iykyk β like cpan or cpanp. π«Ά
By default it prints configure, build, test and runtime requirements and recommendations. And then the command line options let you modify those default choices, which is lowkey the whole point. β¨
Not me forgetting to mention: this script is distributed with Module::CPANfile since version 1.0002. π
π OPTIONS π
--configure,--build,--test,--runtime,--developβ these specify the phase to include or exclude. Defaults to including all of them except--develop, but you can exclude some phases by specifying the options with the--no-prefix, like--no-configure. π«--requires,--recommends,--suggests,--conflictsβ these specify the type to include or exclude. Defaults to including only--requiresand--recommends, but you can exclude some types by specifying the options with the--no-prefix, like--no-recommends. π
Careful bestie: specifying --conflicts will turn off all other types (even if you specified them on the command line). No take-backs. π
--with-feature,--with-all-features,--without-featureβ specify features to include in the dump. The vibe:
cpanfile-dump --with-feature=sqlite
cpanfile-dump --with-all-features --without-feature=yaml
and yes, --with-feature and --without-feature may be used more than once. π
π NOTES π
Because cpanm supports reading cpanfile directly, instead of piping the output of this program, you're recommended to just use cpanm --installdeps . to install modules from cpanfile. Like, just do that. π§
π AUTHOR π
David Golden β icon, legend, the moment. π
π SEE ALSO π
Module::CPANfile Β· cpanfile Β· App::mymeta_requires
perl v5.36.0 Β· 2022-11-19 Β· CPANFILE-DUMP(1p) β and that's the whole page bestie, stan this manpage, periodt πβ¨π¦
π¦ where this page comes from
- debian bookworm: libmodule-cpanfile-perl 1.1004-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libmodule-cpanfile-perl 1.1004-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libmodule-cpanfile-perl 1.1004-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libmodule-cpanfile-perl 1.1004-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libmodule-cpanfile-perl 1.1004-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms