How to Keep Your MacBook Awake While Closed
When you close the lid of your MacBook, it goes to sleep. There’s no system setting you can tweak, and no command you can run, to change this. But there is a major exception to this rule, and another third party program that gives you control.