@@ -23,66 +23,86 @@ Showing List of Commands
2323
2424When called **spark ** without specifying a command, a simple help page is displayed
2525that also provides a list of available commands and their descriptions, sorted by
26- categories::
26+ categories:
2727
28- > php spark
28+ .. code-block :: console
29+
30+ php spark
2931
3032 spark list
3133^^^^^^^^^^
3234
33- ``php spark `` is the exactly same as the ``list `` command::
35+ ``php spark `` is the exactly same as the ``list `` command:
36+
37+ .. code-block :: console
3438
35- > php spark list
39+ php spark list
3640
3741 You may also use the ``--simple `` option to get a raw list of all available commands,
38- sorted alphabetically::
42+ sorted alphabetically:
43+
44+ .. code-block :: console
3945
40- > php spark list --simple
46+ php spark list --simple
4147
4248 Showing Help
4349------------
4450
45- You can get help about any CLI command using the ``help `` command as follows::
51+ You can get help about any CLI command using the ``help `` command as follows:
52+
53+ .. code-block :: console
54+
55+ php spark help db:seed
4656
47- > php spark help db:seed
57+ Since v4.3.0, you can also use the `` -- help`` option instead of the `` help `` command:
4858
49- Since v4.3.0, you can also use the `` --help `` option instead of the `` help `` command::
59+ .. code-block :: console
5060
51- > php spark db:seed --help
61+ php spark db:seed --help
5262
5363 Running a Command
5464-----------------
5565
56- You should pass the name of the command as the first argument to run that command::
66+ You should pass the name of the command as the first argument to run that command:
5767
58- > php spark migrate
68+ .. code-block :: console
5969
60- Some commands take additional arguments, which should be provided directly after the command, separated by spaces::
70+ php spark migrate
6171
62- > php spark db:seed DevUserSeeder
72+ Some commands take additional arguments, which should be provided directly after the command, separated by spaces:
73+
74+ .. code-block :: console
75+
76+ php spark db:seed DevUserSeeder
6377
6478 For all of the commands CodeIgniter provides, if you do not provide the required arguments, you will be prompted
65- for the information it needs to run correctly::
79+ for the information it needs to run correctly:
80+
81+ .. code-block :: console
6682
67- > php spark make:controller
83+ php spark make:controller
6884
6985 Controller class name :
7086
7187 Suppressing Header Output
7288-------------------------
7389
7490When you run a command, the header with CodeIgniter version and the current time
75- is output::
91+ is output:
7692
77- > php spark env
93+ .. code-block :: console
94+
95+ php spark env
7896
7997 CodeIgniter v4.3.5 Command Line Tool - Server Time: 2023-06-16 12:45:31 UTC+00:00
8098
8199 Your environment is currently set as development.
82100
83- You may always pass ``--no-header `` to suppress the header output, helpful for parsing results::
101+ You may always pass ``--no-header `` to suppress the header output, helpful for parsing results:
102+
103+ .. code-block :: console
84104
85- > php spark env --no-header
105+ php spark env --no-header
86106
87107 Your environment is currently set as development.
88108
0 commit comments