Mojolic...and::cgi(3)
π NAME π
hii bestie!! welcome to the Mojolic...and::cgi(3) page β a User Contributed Perl Documentation moment π this one is all about Mojolicious::Command::cgi β the CGI command. periodt.
β¨ SYNOPSIS β¨
okay so here's the whole usage vibe, bestie β cgi is the move:
Usage: APPLICATION cgi [OPTIONS]
./myapp.pl cgi
Options:
-h, --help Show this summary of available options
--home <path> Path to home directory of your application, defaults to
the value of MOJO_HOME or auto-detection
-m, --mode <name> Operating mode for your application, defaults to the
value of MOJO_MODE/PLACK_ENV or "development"
--nph Enable non-parsed-header mode
every option is right there in the block, no cap π
π DESCRIPTION π
Mojolicious::Command::cgi starts applications with the Mojo::Server::CGI backend. it's giving backend realness β¨
This is a core command, which means it is always enabled, and its code is literally a good example for learning to build new commands β you're welcome to fork it, bestie. slay.
See "COMMANDS" in Mojolicious::Commands for a list of commands that are available by default. iykyk π₯
π ATTRIBUTES π
Mojolicious::Command::cgi inherits all attributes from Mojolicious::Command and implements the following new ones. lowkey iconic.
description
my $description = $cgi->description;
$cgi = $cgi->description('Foo');
Short description of this command, used for the command list. so handy π«Ά
usage
my $usage = $cgi->usage;
$cgi = $cgi->usage('Foo');
Usage information for this command, used for the help screen. help screen queen π
π¦ METHODS π¦
Mojolicious::Command::cgi inherits all methods from Mojolicious::Command and implements the following new ones. okay so same inheritance energy, but methods this time.
run
$cgi->run(@ARGV);
Run this command. that's it, that's the method π
π₯ SEE ALSO π₯
go check out Mojolicious, Mojolicious::Guides, and <https://mojolicious.org> β bestie homework π
okay that's the whole page!! this absolute icon of a man page is from perl v5.42.0, dated 2026-07-15, and it's the Mojolic...and::cgi(3) page. mwah πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: perl-Mojolicious 9.480.0-bp160.2.1 Β· Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms