Mojolic...d::psgi(3)
π NAME
Mojolicious::Command::psgi β the PSGI command, bestie. It's the one from the Mojolicious family of docs (that's the Perl Documentation manual name, iykyk π«Ά) that literally just spins your app up through PSGI.
β¨ SYNOPSIS
Like, here's the whole vibe:
Usage: APPLICATION psgi [OPTIONS]
./myapp.pl psgi
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"
So you literally just run ./myapp.pl psgi and it goes. Slay. π
πΈ DESCRIPTION
Mojolicious::Command::psgi starts applications with the Mojo::Server::PSGI backend. That's it, that's the whole job. π
Okay so this one is a core command, which means it is always enabled β no cap, it's just always there for you like a good bestie. And because it's core, its code is a genuinely good example for learning to build new commands. Go ahead and fork it, you're welcome to. π
If you wanna see the full list of commands that are available by default, peep "COMMANDS" in Mojolicious::Commands. Iconic behavior honestly.
π¦ ATTRIBUTES
Mojolicious::Command::psgi inherits all attributes from Mojolicious::Command and implements the following new ones. Not me adding, just reporting. β¨
description
my $description = $psgi->description;
$psgi = $psgi->description('Foo');
Short description of this command, used for the command list. It's giving name tag energy. π·οΈ
usage
my $usage = $psgi->usage;
$psgi = $psgi->usage('Foo');
Usage information for this command, used for the help screen. That's the little "here's how you use me" moment. π«Ά
π₯ METHODS
Mojolicious::Command::psgi inherits all methods from Mojolicious::Command and implements the following new ones. Main character energy only. π
run
my $app = $psgi->run;
Run this command. Literally just β run it. β
π SEE ALSO
MojoliciousMojolicious::Guides- <https://mojolicious.org>
Lowkey the most important part: Mojolicious::Guides is right there, go read it, I'm obsessed with you learning. ππ
Okay bestie, that's the whole page β written for perl v5.42.0, dated 2026-07-15, from the User Contributed Perl Documentation chapter of the Mojolicious::Command::psgi(3) manual. Go forth and slay those requests. π§ββοΈπ
π¦ 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