@@ -8,22 +8,19 @@ The :doc:`/components/console/usage` page of the components documentation looks
88at the global console options. When you use the console as part of the full-stack
99framework, some additional global options are available as well.
1010
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:
1717
1818.. code-block :: terminal
1919
20- $ php bin/console cache:clear --env=prod
20+ $ php bin/console cache:clear --no-warmup -- env=prod
2121
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
2724
2825 In addition to changing the environment, you can also choose to disable debug mode.
2926This can be useful where you want to run commands in the ``dev `` environment
0 commit comments