How do I open Chrome in headless mode?

How do I open Chrome in headless mode?

To open Chrome in headless mode, open CLI and type the below command -

chrome
– headless # Runs Chrome in headless mode.
– disable-gpu # Temporarily needed if running on Windows.
– remote-debugging-port=9222
https://www.chromestatus.com # URL to open. Defaults to about:blank.