$ npm install lock-cli
Lock your system from the command-line
Shows the login screen the next time you use the computer.
Supports macOS, Linux, and Windows.
npm install --global lock-cli
lock