@@ -6,21 +6,26 @@ How to use the Console
6
6
7
7
The :doc: `/components/console/usage ` page of the components documentation looks
8
8
at the global console options. When you use the console as part of the full
9
- stack framework some additional global options are available as well.
9
+ stack framework, some additional global options are available as well.
10
10
11
- By default console commands run in the ``dev `` environment, you may want
11
+ By default, console commands run in the ``dev `` environment and you may want
12
12
to change this for some commands. For example, you may want to run some commands
13
- in the ``prod `` environment for performance reasons. The result of some commands
14
- will be different depending on the environment, for example, the ``cache:clear ``
15
- command will clear and warm the cache for the specified environment only so to
13
+ in the ``prod `` environment for performance reasons. Also, the result of some commands
14
+ will be different depending on the environment. for example, the ``cache:clear ``
15
+ command will clear and warm the cache for the specified environment only. To
16
16
clear and warm the ``prod `` cache you need to run:
17
17
18
18
.. code-block :: bash
19
19
20
20
$ php app/console cache:clear --env=prod
21
+
22
+ or the equivalent:
23
+
24
+ .. code-block :: bash
25
+
21
26
$ php app/console cache:clear -e=prod
22
27
23
- As well as changing the environment you can also choose to disable debug mode.
28
+ In addition to changing the environment, you can also choose to disable debug mode.
24
29
This can be useful where you want to run commands in the ``dev `` environment
25
30
but avoid the performance hit of collecting debug data:
26
31
@@ -50,11 +55,11 @@ When using the shell you can choose to run each command in a separate process:
50
55
$ php app/console --shell --process-isolation
51
56
$ php app/console -s --process-isolation
52
57
53
- When you do this the output will not be colorized and interactivity is not
58
+ When you do this, the output will not be colorized and interactivity is not
54
59
supported so you will need to pass all command params explicitly.
55
60
56
61
.. note ::
57
62
58
63
Unless you are using isolated processes, clearing the cache in the shell
59
64
will not have an effect on subsequent commands you run. This is because
60
- the original cached files will still be being used.
65
+ the original cached files are still being used.
0 commit comments