Prevent macOS from sleeping. More information: https://keith.github.io/xcode-man-pages/caffeinate.8.html.
caffeinate -u -t 3600
caffeinate -s "command"
caffeinate -w pid
Ctrl + C
caffeinate -i
caffeinate -m