Carton::Doc::Install(3pm) | User Contributed Perl Documentation | Carton::Doc::Install(3pm) |
Carton::Doc::Install - Install the dependencies
carton install [--deployment] [--cached] [--path=PATH] [--without develop]
Install the dependencies for your application. This command has two modes and the behavior is slightly different.
If you run "carton install" for the first time (i.e. cpanfile.snapshot does not exist), carton will fetch all the modules specified, resolve dependencies and install all required modules from CPAN.
If cpanfile.snapshot file does exist, carton will still try to install modules specified or updated in cpanfile, but uses cpanfile.snapshot for the dependency resolution, and then cascades to CPAN.
carton will analyze all the dependencies and their version information, and it is saved into cpanfile.snapshot file. It is important to add cpanfile.snapshot file into a version controlled repository and commit the changes as you update your dependencies.
If you specify the "--deployment" command line option or the cpanfile.snapshot exists, carton will only use the dependencies specified in the cpanfile.snapshot instead of resolving dependencies.
Carton assumes the directory where your cpanfile (or altenate path) exists as a project root directory, and will look for the snapshot file as well as install directory ("local") and "vendor/cache" relative to it.
NOTE: this option, as of version 1.0, is not preserved across multiple runs of "carton install" or other commands such as "carton list" or "carton exec". You can choose to set the path in "PERL_CARTON_PATH" environment variable to persist it across commands.
carton install --deployment --without develop
NOTE: "--without" for the initial installation (without cpanfile.snapshot) is not supported at this moment.
2018-12-16 | perl v5.28.1 |