How to check the environment using the Symfony console tool?

automatix picture automatix · Feb 8, 2017 · Viewed 17.3k times · Source

I use the Symfony CLI tool and I'm looking for a way to check the environment. I could not find anything like

$ php bin/console get environment

Is there another way for that? Is it possible / How to find out, which environment is currently active?


EDIT

The application is running in a concrete environment (and using then the app.php for prod or an app_{env} for any other environment).

So what I actually want to achieve is to find out, which environment is currently being used by the application (when the app is called via HTTP, e.g. in a browser).

Answer

aga picture aga · May 8, 2018
php bin/console about

This will display info about your app, one row will concern Environment:

enter image description here