CPANFILE-DUMP(1p)

πŸ“¦
version 1.1004 Β· 2 versions
  • 1.1004 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 1.1004 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ 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 --requires and --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