How to debug all parameters on environments in Symfony?

As @Matteo said in comment, you could use the command below to see all your parameters

php bin/console debug:container --parameters --env=prod

But there is not any command to list all your parameters from all your environments, you have to make a script (bash script with grep and the command above) or a Symfony command to get exactly what you want.


Although the OP asks about parameters and not environment variables, I'll add this answer because someone who is searching may find this command, new in Symfony 5.4/6, helpful:

bin/console debug:dotenv


Regardless of how you set environment variables, you can see a full list with their values by running:

php bin/console debug:container --env-vars

See Symfony docs for more details.

Tags:

Symfony