8000 extending env var list with debug:dotenv command · symfony/symfony-docs@77d5506 · GitHub
[go: up one dir, main page]

Skip to content

Commit 77d5506

Browse files
committed
extending env var list with debug:dotenv command
1 parent 7de7194 commit 77d5506

File tree

1 file changed

+31
-2
lines changed

1 file changed

+31
-2
lines changed

configuration.rst

+31-2
Original file line numberDiff line numberDiff line change
@@ -718,8 +718,37 @@ you can encrypt the value using the :doc:`secrets management system </configurat
718718
Listing Environment Variables
719719
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
720720

721-
Regardless of how you set environment variables, you can see a full list with
722-
their values by running:
721+
To understand how environment variables are set by the Dotenv component parsing various
722+
files, you can run the following command:
723+
724+
.. code-block:: terminal
725+
726+
$ php bin/console debug:dotenv
727+
728+
Dotenv Variables & Files
729+
========================
730+
731+
Scanned Files (in descending priority)
732+
--------------------------------------
733+
734+
* ⨯ .env.local.php
735+
* ⨯ .env.dev.local
736+
* ✓ .env.dev
737+
* ⨯ .env.local
738+
* ✓ .env
739+
740+
Variables
741+
---------
742+
743+
---------- ------- ---------- ------
744+
Variable Value .env.dev .env
745+
---------- ------- ---------- ------
746+
FOO BAR n/a BAR
747+
ALICE BOB BOB bob
748+
---------- ------- ---------- ------
749+
750+
Additionally, and regardless of how you set environment variables, you can see all
751+
environment variables, with their values, referenced in Symfony's container configuration:
723752

724753
.. code-block:: terminal
725754

0 commit comments

Comments
 (0)
0