Net::PMP::CLI - command line application for Net::PMP::Client
use Net::PMP::CLI; my $app = Net::PMP::CLI->new_with_options(); $app->run();
This class is used by the pmpc command-line tool. It uses MooseX::SimpleConfig and MooseX::Getopt to allow for simple configuration file and option parsing.
pmpc
With the exceptions of run and init_client all method names are commands.
Main method. Calls commands passed via @ARGV.
Returns usage text for available commands.
Executes search for query and prints results to stdout.
Execute search for query and deletes the results.
Create or update a resource via Net::PMP::Client. Requires the --profile and --title options.
--profile
--title
Create a credential set. Requires --user and --pass options, and optionally --scope --expires --label.
Deletes a resource. Requires the --guid option.
--guid
Deletes all resources that match a search for tag.
List all users.
List all groups.
Issues a get_doc() for the URI represented by path. If path is not explicitly passed, looks at the --path option.
--path
Dumps the resource for path to stdout.
Reads filename and PUTs it to the server. If missing, the file() attribute will be checked instead.
filename should represent a ready-to-save CollectionDoc in JSON format. A simple string substitution will be performed, replacing ${HOSTNAME} with the base PMP host for the configured environment.
${HOSTNAME}
Save child_doc as child of parent_doc.
Instantiates and caches a Net::PMP::Client instance.
Peter Karman, <karman at cpan.org>
<karman at cpan.org>
Please report any bugs or feature requests to bug-net-pmp at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Net-PMP. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-net-pmp at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Net::PMP::Client
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Net-PMP
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Net-PMP
CPAN Ratings
http://cpanratings.perl.org/d/Net-PMP
Search CPAN
http://search.cpan.org/dist/Net-PMP/
American Public Media and the Public Media Platform sponsored the development of this module.
Copyright 2013 American Public Media Group
See the LICENSE file that accompanies this module.
To install Net::PMP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::PMP
CPAN shell
perl -MCPAN -e shell install Net::PMP
For more information on module installation, please visit the detailed CPAN module installation guide.