Skip to content

Instantly share code, notes, and snippets.

@kevsersrca
Forked from gasparrobi/headlessChrome.md
Created April 20, 2020 11:27
Show Gist options
  • Save kevsersrca/58b5e26d8910609b6bc231427ec478e6 to your computer and use it in GitHub Desktop.
Save kevsersrca/58b5e26d8910609b6bc231427ec478e6 to your computer and use it in GitHub Desktop.
headless chrome from terminal in osX

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment