1. set an alias for chrome: alias chrome="/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome" 2. To remote control your chrome headless: chrome --headless --disable-gpu --remote-debugging-port=9222
Thanks!