1MYMETA-REQUIRES(1)    User Contributed Perl Documentation   MYMETA-REQUIRES(1)
2
3
4

NAME

6       mymeta-requires - Extract module requirements from MYMETA files
7

VERSION

9       version 0.006
10

SYNOPSIS

12         Usage: mymeta-requires [OPTIONS...]
13
14         PHASE OPTIONS:
15         --runtime     (default: on)
16         --build       (default: on)
17         --test        (default: on)
18         --configure   (default: on)
19         --develop     (default: off)
20
21         TYPE OPTIONS
22         --recommends  (default: on)
23         --suggests    (default: on)
24
25         OTHER OPTIONS:
26         --file,     -f  Specify alternate MYMETA file
27         --verbose,  -v  Slightly more verbose logging
28         --report        Report on all prereqs, missing or not
29         --help,     -h  Usage help
30
31         All long-style options may be negated, e.g. "--no-test"
32

DESCRIPTION

34       This program extracts CPAN module requirements as recorded in a
35       MYMETA.json or MYMETA.yml file in the current directory and prints them
36       one-per-line to "STDOUT".  It is intended to help install prerequisites
37       manually using a CPAN client.  For example, with ExtUtils::MakeMaker
38       6.58 (which writes MYMETA files) and App::cpanminus:
39
40         $ perl Makefile.PL
41         $ mymeta-requires | cpanm
42
43       Or with the traditional cpan client:
44
45         $ perl Makefile.PL
46         $ cpan $(mymeta-requires)
47
48       The various configuration options allow customizing which prerequisite
49       prerequisite phases and types are extracted.  (See "PREREQUITIES" in
50       CPAN::Meta for an explanation of phases and types.)
51
52       By default all phases except "develop" are included and types
53       "requires", "recommends" and "suggests".  Any phase or type may be
54       negated by prefixing "no-" to the option. E.g.
55
56         $ mymeta-requires --no-suggests
57
58       If no MYMETA.json or MYMETA.yml file is found, this will fall back to
59       using a META.json or META.yml  This is not guaranteed to have all
60       dependencies, but may be useful for bootstrapping configuration
61       requirements.  E.g.
62
63         # get any configuration requirements
64         $ mymeta-requires | cpanm
65
66         # run configuration
67         $ perl Makefile.PL
68
69         # repeat to get any dynamic dependencies
70         $ mymeta-requires | cpanm
71
72       With "--report", instead of just listing missing prereqs, all the
73       specified prereqs (or default ones) will be listed with their installed
74       version (or listed as missing) along with the prerequisites required.
75

AUTHOR

77       David Golden <dagolden@cpan.org>
78
80       This software is Copyright (c) 2011 by David Golden.
81
82       This is free software, licensed under:
83
84         The Apache License, Version 2.0, January 2004
85
86
87
88perl v5.28.1                      2016-08-18                MYMETA-REQUIRES(1)
Impressum