You can turn a PS4 off or on using either the power button located on the console or a paired or connected controller. Here's how to do it.
You can choose to appear offline on a PS4 when you first log in, or at any time when you're online. Here's how to do it.