Mojolic...:plugin(3)
π Mojolicious::Command::Author::generate::plugin β the plugin generator command
okay so real talk, bestie, this is the manual page for Mojolicious::Command::Author::generate::plugin (the title up top is all dramatic and truncated like Mojolic...:plugin(3) but we know what it means π«Ά). It's filed under User Contributed Perl Documentation and honestly? It's giving "small page, big power". β¨
πΈ NAME πΈ
Mojolicious::Command::Author::generate::plugin β literally the Plugin generator command. That's it, that's the whole vibe. π
π¦ SYNOPSIS π¦
Here's the whole usage moment, copy it exactly, no cap:
Usage: APPLICATION generate plugin [OPTIONS] [NAME]
mojo generate plugin
mojo generate plugin TestPlugin
mojo generate plugin -f MyApp::Plugin::AwesomeFeature
Options:
-f, --full Do not prepend "Mojolicious::Plugin::" to the plugin name
-h, --help Show this summary of available options
And in cute bullet form, because your girl loves a list:
-f,--fullβ do not prepend"Mojolicious::Plugin::"to the plugin name π (so you get your own full namespace, iconic)-h,--helpβ show this summary of available options π«Ά (the "help me help you" button)
β¨ DESCRIPTION β¨
So Mojolicious::Command::Author::generate::plugin generates directory structures for fully functional Mojolicious plugins. Like, it does the scaffolding so you don't have to, and that's a slay. ποΈπ
It's a core command, which means β and this is the important bit β it is always enabled ππ. And its code is a good example for learning to build new commands, so the authors are literally like "you're welcome to fork it." Go off, take it, remix it, main character energy. π
Also, quick pointer: see "COMMANDS" in Mojolicious::Commands for a list of commands that are available by default. Bookmark that fr fr. π
π§ ATTRIBUTES π§
Mojolicious::Command::Author::generate::plugin inherits all attributes from Mojolicious::Command and implements the following new ones. π
π· description π·
my $description = $plugin->description;
$plugin = $plugin->description('Foo');
Short description of this command, used for the command list. So when you're scrolling the command list and see a lil one-liner, this is where it lives. π
π· usage π·
my $usage = $plugin->usage;
$plugin = $plugin->usage('Foo');
Usage information for this command, used for the help screen. Basically the cheat sheet that shows up when someone asks for help. β¨
π₯ METHODS π₯
Mojolicious::Command::Author::generate::plugin inherits all methods from Mojolicious::Command and implements the following new ones. π
πΊ run πΊ
$plugin->run(@ARGV);
Run this command. That's the whole thing. It runs. Periodt. π (yes that's really all it says, I'm not gatekeeping, there's just nothing more π)
π SEE ALSO π
The whole friend group: Mojolicious, Mojolicious::Guides, and <https://mojolicious.org>. π¦ Go say hi, they're lovely.
π tiny reminder bestie: this doc is fromperl v5.42.0, dated2026-07-15β so if you're reading this from some other timeline, double-check your own version, 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