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