macOS: Log a graphical user out from the CLI

$ sudo launchctl bootout user/$(id -u <username>)
Edit