Pinto::Manual::QuickStart3pm
A condensed summary of pinto
Version
version 0.14
Installing pinto
curl -L http://getpinto.stratopan.com | bashsource ~/opt/local/pinto/etc/bashrc
Creating a repository
# A new repository with default stack named "master"pinto -r /repo/dir initpinto init /repo/dir# A new repository with default stack named "dev"pinto -r /repo/dir init --stack dev
Browsing a repository
# See all packages in the default stackpinto -r /repo/dir list# See all packages in the default stack matching m/Foo::Bar/ipinto -r /repo/dir list -P Foo::Bar# See all packages in the default stack by author "JOE"pinto -r /repo/dir list -A JOE# See all packages in the "dev" stackpinto -r /repo/dir list --stack devpinto -r /repo/dir list dev
Pulling upstream distributions
# Pull any version of Foo::Barpinto -r /repo/dir pull Foo::Bar# Pull version 2.4 or newer of Foo::Barpinto -r /repo/dir pull Foo~2.4# Pull exactly version 2.4 of Foo::Barpinto -r /repo/dir pull Foo==2.4# Pull a specific distributionpinto -r /repo/dir pull AUTHOR/Foo-Bar-1.9.tar.gz# Pull and pin at the same timepinto -r /repo/dir pull --pin Foo::Bar~2.4# Pull many packages or distributionspinto -r /repo/dir pull Foo::Bar Baz::Qux ...pinto -r /repo/dir pull < LIST_OF_PACKAGES# Pull everything for a Dist::Zilla projectdzil listdeps | pinto -r /repo/dir pull# Pull onto the "dev" stackpinto -r /repo/dir pull --stack dev Foo::Bar
Adding local distributions
# Add a local dist to the default stackpinto -r /repo/dir add My-Dist-1.0.tar.gz# Assign to a different authorpinto -r /repo/dir add --author SHAKESPEARE My-Dist-1.0.tar.gz# Add and pin at the same timepinto -r /repo/dir add --pin My-Dist-1.0.tar.gz# Add to the "dev" stackpinto -r /repo/dir add --stack dev My-Dist-1.0.tar.gz
Installing things
# Install from the default stack using cpanmcpanm --mirror file:///repo/dir --mirror-only Foo::Bar# Install from the "dev" stack using cpanmcpanm --mirror file:///repo/dir/stacks/dev --mirror-only Foo::Bar# Install from the default stack using pintopinto -r /repo/dir install Foo::Bar# Install from the "dev" stack using pintopinto -r /repo/dir --stack dev install Foo::Bar# Install and populate the repository with missing prereqspinto -r /repo/dir install --do-pull Foo::Bar
Managing stacks
# Create an empty stack named "qa"pinto -r /repo/dir new qa# Create a stack by copying "dev" to "qa"pinto -r /repo/dir copy dev qa# Delete the dev stackpinto -r /repo/dir kill dev# Rename the "dev" stack to "prod"pinto -r /repo/dir rename dev prod# Mark the "qa" stack as the defaultpinto -r /repo/dir default qa# Show config properties of the default stackpinto -r /repo/dir props# Set config properties of the default stackpinto -r /repo/dir props --property NAME=VALUE# Show all the existing stackspinto -r /repo/dir stacks
Using pins
# Pin a package on the default stackpinto -r /repo/dir pin Foo::Bar# Pin a package on the "dev" stackpinto -r /repo/dir pin --stack dev Foo::Bar# Pin a distributionpinto -r /repo/dir pin AUTHOR/Foo-Bar-1.0.tar.gz# Unpin a package from the default stackpinto -r /repo/dir unpin Fo::Bar# Unpin a package from the "dev" stackpinto -r /repo/dir unpin --stack dev Foo::Bar# Unpin a distributionpinto -r /repo/dir unpin AUTHOR/Foo-Bar-1.0.tar.gz
Version control
# View commit messages for the default stackpinto -r /repo/dir log# View commit messages for the "dev" stackpinto -r /repo/dir log dev# Compare the heads of the default and "qa" stackspinto -r /repo/dir diff qa# Compare the heads of the "dev" and "qa" stackspinto -r /repo/dir diff dev qa# Merge "dev" stack into the "qa" stack (fast-forward only)pinto -r /repo/dir merge dev qa
Miscellany
# Report missing distribution archivespinto -r /repo/dir verify# Report repo statisticspinto -r /repo/dir stats# Remove orphan files and tune the databasepinto -r /repo/dir clean# Report top-level distributions of the default stackpinto -r /repo/dir roots
Getting more help
# Show a list of pinto commandspinto commands# Show a brief summary of a COMMANDpinto help COMMAND# Show the manual for a COMMANDpinto manual COMMAND
Copyright and license
This software is copyright (c) 2015 by Jeffrey Ryan Thalhammer.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Releases
6 releases since Debian 8 (Jessie); the text changed 5 times.