CPANFILE-DUMP(1)

πŸ’… cpanfile-dump β€” hey bestie, it's a manpage

Okay so this is cpanfile-dump(1), coming at you from the User Contributed Perl Documentation corner of the world, and it's literally just a little script that goes "here's your prereqs, go off" πŸŽ€

✨ NAME ✨

cpanfile-dump β€” dumps the prerequisites out of a cpanfile, no cap πŸ’–

🌸 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 basically this script reads the prereqs out of a cpanfile and dumps a raw list of them straight to standard output. It's giving middleman, and honestly that's the whole point β€” it's useful for piping them as input into another program that doesn't support reading cpanfile directly, like cpan or cpanp πŸ‘‘

By default it prints the configure, build, test and runtime requirements and recommendations. The command line options let you mess with those default choices however you want β€” main character energy, your call πŸ’…

This script is distributed with Module::CPANfile since version 1.0002, iykyk ✨


πŸŽ€ OPTIONS πŸŽ€

  • --configure, --build, --test, --runtime, --develop β€” specify the phase to include or exclude. Defaults to including all of them except --develop, but you can exclude some phases by slapping the --no- prefix on, like --no-configure 🫢
  • --requires, --recommends, --suggests, --conflicts β€” specify the type to include or exclude. Defaults to including only --requires and --recommends, but you can exclude some types by using the --no- prefix, like --no-recommends 🌸
Heads up bestie: specifying --conflicts will turn off all the other types, even if you literally specified them on the command line. It's a my-way-or-the-highway situation πŸ’€
  • --with-feature, --with-all-features, --without-feature β€” specify features to include in the dump. Both --with-feature and --without-feature may be used more than once πŸ‘‘
cpanfile-dump --with-feature=sqlite
cpanfile-dump --with-all-features --without-feature=yaml

😭 NOTES 😭

Not me telling you this for your own good, but: 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 a cpanfile. Slay, less steps 🌈

πŸ’œ AUTHOR πŸ’œ

David Golden ⭐

🧚 SEE ALSO 🧚

Module::CPANfile Β· cpanfile Β· App::mymeta_requires


and that's the whole page, bestie πŸŽ€ fr fr β€” brought to you by perl v5.42.0, dated 2018-04-27, and the letters C, P, A, N. mwah πŸ’‹

πŸ“¦ where this page comes from