{"action":"closed","issue":{"url":"https://api.github.com/repos/aspnet/dnx/issues/725","labels_url":"https://api.github.com/repos/aspnet/dnx/issues/725/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/dnx/issues/725/comments","events_url":"https://api.github.com/repos/aspnet/dnx/issues/725/events","html_url":"https://github.com/aspnet/dnx/issues/725","id":45293422,"number":725,"title":"Enable specifying environment name for commands","user":{"login":"bricelam","id":1226749,"avatar_url":"https://avatars.githubusercontent.com/u/1226749?v=3","gravatar_id":"","url":"https://api.github.com/users/bricelam","html_url":"https://github.com/bricelam","followers_url":"https://api.github.com/users/bricelam/followers","following_url":"https://api.github.com/users/bricelam/following{/other_user}","gists_url":"https://api.github.com/users/bricelam/gists{/gist_id}","starred_url":"https://api.github.com/users/bricelam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bricelam/subscriptions","organizations_url":"https://api.github.com/users/bricelam/orgs","repos_url":"https://api.github.com/users/bricelam/repos","events_url":"https://api.github.com/users/bricelam/events{/privacy}","received_events_url":"https://api.github.com/users/bricelam/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aspnet/dnx/labels/needs%20design","name":"needs design","color":"006b75"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/aspnet/dnx/milestones/2","html_url":"https://github.com/aspnet/dnx/milestones/Backlog","labels_url":"https://api.github.com/repos/aspnet/dnx/milestones/2/labels","id":632687,"number":2,"title":"Backlog","description":"","creator":{"login":"davidfowl","id":95136,"avatar_url":"https://avatars.githubusercontent.com/u/95136?v=3","gravatar_id":"","url":"https://api.github.com/users/davidfowl","html_url":"https://github.com/davidfowl","followers_url":"https://api.github.com/users/davidfowl/followers","following_url":"https://api.github.com/users/davidfowl/following{/other_user}","gists_url":"https://api.github.com/users/davidfowl/gists{/gist_id}","starred_url":"https://api.github.com/users/davidfowl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidfowl/subscriptions","organizations_url":"https://api.github.com/users/davidfowl/orgs","repos_url":"https://api.github.com/users/davidfowl/repos","events_url":"https://api.github.com/users/davidfowl/events{/privacy}","received_events_url":"https://api.github.com/users/davidfowl/received_events","type":"User","site_admin":false},"open_issues":63,"closed_issues":68,"state":"open","created_at":"2014-04-17T06:07:54Z","updated_at":"2015-07-17T20:55:12Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2014-10-08T20:35:40Z","updated_at":"2015-07-17T20:55:12Z","closed_at":"2015-07-17T20:55:12Z","body":"While @anpete was app building, he needed a way to use a different configuration while running tests. He was able to use the environment variable `K_ENV`, but there was no way to do it using the command line or `project.json`.\r\n\r\nWe imagined users should be able to do something like the following.\r\n```\r\nk --env Testing test\r\n```\r\nor\r\n```JSON\r\n{\r\n    \"commands\": {\r\n        \"test\": { \"app\": \"xunit.runner.kre\", \"env\": \"Testing\" }\r\n    }\r\n}\r\n```\r\n\r\nThere may be a meta point here that the ApplicationHost should know about environments."}}