Plack::App::CLI - Command Line Interface to PSGI
use Plack::App::CLI; Plack::App::CLI->run(FILENAME || CODEREF);
Run handler using run method accpeting a code reference of the application or .psgi file.
Plack::App::CLI is a handler for using psgi application using console. Simply pass options and path including query strings. Also POST is supported.
echo "username=john&password=secret" | ./script.pl -p /form
Script accepts options and path to process. Example above pretty much equals to
POST /form HTTP/1.0 username=john&password=secret
Runs the application
prints version
Plack app environment, default deployment
suppress colored output
use POST OR GET method (default)
print body into file
add header
PSGI
Plack
Dalibor Horinek <dal@horinek.net>
Copyright (c) 2012, Dalibor Horinek <dal@horinek.net>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic for details.
To install Plack::App::CLI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack::App::CLI
CPAN shell
perl -MCPAN -e shell install Plack::App::CLI
For more information on module installation, please visit the detailed CPAN module installation guide.