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


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