Mojolic...:routes(3)

πŸ’– NAME πŸ’–

Mojolicious::Command::routes β€” Routes command.

Okay bestie, this is the Mojolic...:routes(3) page (yes, the manual header truncates it like that), filed under User Contributed Perl Documentation. It’s the routes command from Mojolicious, and it’s literally here to show you all your routes. πŸ’…


✨ SYNOPSIS ✨

Here’s the exact shape, no cap:

  Usage: APPLICATION routes [OPTIONS]

    ./myapp.pl routes
    ./myapp.pl routes -v

  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"
    -v, --verbose       Print additional details about routes, flags indicate
                        C=Conditions, P=Partial, U=Under and W=WebSocket

And the flags one by one, because we love a checklist πŸŽ€:

  • -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".
  • -v, --verbose β€” Print additional details about routes, flags indicate C=Conditions, P=Partial, U=Under and W=WebSocket.

πŸ¦‹ DESCRIPTION πŸ¦‹

Mojolicious::Command::routes lists all your application routes. The way that it just lays them out for you? Main character energy, fr fr.

This is a core command, that means it is always enabled and its code a good example for learning to build new commands, you’re welcome to fork it. Iconic behavior, honestly. ✨

See "COMMANDS" in Mojolicious::Commands for a list of commands that are available by default.


πŸŽ€ ATTRIBUTES πŸŽ€

Mojolicious::Command::routes inherits all attributes from Mojolicious::Command and implements the following new ones.

🌸 description 🌸

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

Short description of this command, used for the command list.

🌺 usage 🌺

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

Usage information for this command, used for the help screen.


πŸ’… METHODS πŸ’…

Mojolicious::Command::routes inherits all methods from Mojolicious::Command and implements the following new ones.

⭐ run ⭐

$routes->run(@ARGV);

Run this command. That’s it. That’s the method. Slay. πŸ’…


🌈 SEE ALSO 🌈


source/version: perl v5.42.0 Β· date: 2026-07-15 Β· manual: Mojolic...:routes(3) πŸ’– bye bestie, go check those routes! 🫢

πŸ“¦ where this page comes from