This is an expression that is mostly used in informal contexts. When you tell someone to ‘wake up and smell the coffee’, what you mean is that you want the individual to be more aware of what is happening around him. It has the same meaning as ‘get with it’.
*You don’t know what an iPhone is! Wake up and smell the coffee.*The company is in serious trouble. Wake up and smell the coffee.