1Mojolicious::Command::cUgsie(r3)Contributed Perl DocumenMtoajtoiloincious::Command::cgi(3)
2
3
4
6 Mojolicious::Command::cgi - CGI command
7
9 Usage: APPLICATION cgi [OPTIONS]
10
11 ./myapp.pl cgi
12
13 Options:
14 -h, --help Show this summary of available options
15 --home <path> Path to home directory of your application, defaults to
16 the value of MOJO_HOME or auto-detection
17 -m, --mode <name> Operating mode for your application, defaults to the
18 value of MOJO_MODE/PLACK_ENV or "development"
19 --nph Enable non-parsed-header mode
20
22 Mojolicious::Command::cgi starts applications with the
23 Mojo::Server::CGI backend.
24
25 This is a core command, that means it is always enabled and its code a
26 good example for learning to build new commands, you're welcome to fork
27 it.
28
29 See "COMMANDS" in Mojolicious::Commands for a list of commands that are
30 available by default.
31
33 Mojolicious::Command::cgi inherits all attributes from
34 Mojolicious::Command and implements the following new ones.
35
36 description
37 my $description = $cgi->description;
38 $cgi = $cgi->description('Foo');
39
40 Short description of this command, used for the command list.
41
42 usage
43 my $usage = $cgi->usage;
44 $cgi = $cgi->usage('Foo');
45
46 Usage information for this command, used for the help screen.
47
49 Mojolicious::Command::cgi inherits all methods from
50 Mojolicious::Command and implements the following new ones.
51
52 run
53 $cgi->run(@ARGV);
54
55 Run this command.
56
58 Mojolicious, Mojolicious::Guides, <https://mojolicious.org>.
59
60
61
62perl v5.34.0 2022-01-21 Mojolicious::Command::cgi(3)