fail cli request if environment not defined