The environment variable used to determine the application environment of an ASP.NET 5 application is ASPNET_ENV. Learn more about how this works in the official docs on working with multiple environments in ASP.NET 5.
Whether you’re developing on Windows or a Mac/Linux machine, you can control the behavior of your ASP.NET 5 application by setting environment variables.