Mojolic...ite_app(3)

πŸ’– NAME πŸ’–

Okay so bestie, gather round β€” this is Mojolicious::Command::Author::generate::lite_app, aka the Lite app generator command. That's it, that's the whole thing: it makes little apps for you. Iconic behavior fr fr. ✨


🌸 SYNOPSIS 🌸

Here's the vibe check on how you actually call it:

Usage: APPLICATION generate lite-app [OPTIONS] [NAME]

  mojo generate lite-app
  mojo generate lite-app foo.pl

Options:
  -h, --help   Show this summary of available options

So literally you can just run it with no name at all, or hand it a filename like foo.pl and it will do the thing. Slay. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

Mojolicious::Command::Author::generate::lite_app generates fully functional Mojolicious::Lite applications. Fully functional!! Not a stub, not a "figure it out yourself" situation β€” it's giving whole entire app. πŸŽ€

This is a core command, which means like… two things, bestie:

  • it is always enabled ⭐
  • its code is a good example for learning to build new commands, and you're welcome to fork it πŸ“

Also worth knowing: check out "COMMANDS" in Mojolicious::Commands for the list of commands that are available by default. iykyk. πŸ‘‘


🌈 ATTRIBUTES 🌈

So Mojolicious::Command::Author::generate::lite_app inherits all attributes from Mojolicious::Command and implements the following new ones. Let's go through 'em 🫢

✨ description

my $description = $app->description;
$app            = $app->description('Foo');

Short description of this command, used for the command list. Basically it's the little blurb that shows up when you're scrolling the list of commands β€” the ~intro text~ if you will. Not me being obsessed with a one-liner description 😭

✨ usage

my $usage = $app->usage;
$app      = $app->usage('Foo');

Usage information for this command, used for the help screen. So when someone asks for help, this is what shows up. The help screen is literally built from this. 🧚


πŸ”₯ METHODS πŸ”₯

Mojolicious::Command::Author::generate::lite_app inherits all methods from Mojolicious::Command and implements the following new one. Just the one, and honestly? She doesn't need more. Main character energy. πŸ’œ

⭐ run

$app->run(@ARGV);

Run this command. That's the whole paragraph, no cap β€” you call it, it runs, it does the lite-app generating. πŸŽ€


🌸 SEE ALSO 🌸


πŸ’€ real talk though: this is the perl v5.42.0 build, dated 2026-07-15, so like… that's the version and date you're reading. Don't come for me, that's just what the footer said. 🫢

okay that's the whole page bestie, go generate a lite app and slay βœ¨πŸ¦‹πŸŽ€

πŸ“¦ where this page comes from