@@ -8,22 +8,19 @@ 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-stack
9
9
framework, some additional global options are available as well.
10
10
11
- By default, console commands run in the ``dev `` environment and you may want
12
- to change this for some commands. For example, you may want to run some commands
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
- clear and warm the ``prod `` cache you need to run:
11
+ By default, console commands run in the ``dev `` environment and you may want to
12
+ change this for some commands. For example, you may want to run some commands in
13
+ the ``prod `` environment for performance reasons. Also, the result of some
14
+ commands will be different depending on the environment. For example, the
15
+ `` cache:clear `` command will clear the cache for the specified environment only.
16
+ To clear the ``prod `` cache you need to run:
17
17
18
18
.. code-block :: terminal
19
19
20
- $ php bin/console cache:clear --env=prod
20
+ $ php bin/console cache:clear --no-warmup -- env=prod
21
21
22
- or the equivalent:
23
-
24
- .. code-block :: terminal
25
-
26
- $ php bin/console cache:clear -e prod
22
+ # this is equivalent:
23
+ $ php bin/console cache:clear --no-warmup -e prod
27
24
28
25
In addition to changing the environment, you can also choose to disable debug mode.
29
26
This can be useful where you want to run commands in the ``dev `` environment
0 commit comments