NAME

cpm - a fast CPAN module installer

SYNOPSIS

# install modules into local/
> cpm install Module1 Module2 ...

# install modules with verbose messages
> cpm install -v Module

# from cpanfile (with cpanfile.snapshot if any)
> cpm install

# install module into current @INC istead of local/
> cpm install -g Module

# prefer TRIAL release
> cpm install --dev Moose

# install modules as if version of your perl is 5.8.5
# so that modules which are not core in 5.8.5 will be installed
> cpm install --target-perl 5.8.5

# resolve distribution names from DARKPAN/modules/02packages.details.txt.gz
# and fetch distibutions from DARKPAN/authors/id/...
> cpm install --resolver 02packages,http://example.com/darkpan Your::Module
> cpm install --resolver 02packages,file:///path/to/darkpan    Your::Module

# use darkpan first, and if it fails, use metadb and normal CPAN
> cpm install --resolver 02packages,http://example.com/darkpan --resolver metadb Your::Module

OPTIONS

-w, --workers=N
      number of workers, default: 5
-L, --local-lib-contained=DIR
      directory to install modules into, default: local/
-g, --global
      install modules into current @INC instead of local/
-v, --verbose
      verbose mode; you can see what is going on
    --target-perl=VERSION  (EXPERIMENTAL)
      install modules as if verison is your perl is VERSION
    --mirror=URL
      base url for the CPAN mirror to use, you can use --mirror multiple times
      default: https://cpan.metacpan.org
-r, --resolver=class,args (EXPERIMENTAL, will be removed or renamed)
      specify resolvers, you can use --resolver multiple times
      available classes: metadb/metacpan/02packages/snapshot
    --dev (EXPERIMENTAL)
      resolve TRIAL distributions too
    --color, --no-color
      turn on/off color output, default: on
    --test, --no-test
      run test cases, default: no
    --man-pages
      generate man pages
    --with-develop (EXPERIMENTAL)
      install dependencies of phase 'develop' in cpanfile too
    --with-recommends (EXPERIMENTAL)
      install dependencies of type 'recommends' in cpanfile too
    --with-suggests (EXPERIMENTAL)
      install dependencies of type 'suggests' in cpanfile too
    --retry, --no-retry
      retry configure/build/test/install if fails, default: retry
    --configure-timeout=sec, --build-timeout=sec, --test-timeout=sec
      specify configure/build/test timeout second, default: 60sec, 3600sec, 1800sec
-V, --version
      show version
-h, --help
      show this help

COPYRIGHT AND LICENSE

Copyright 2015 Shoichi Kaji <skaji@cpan.org>

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.