Chrome Flags Reference

Chrome command line switches and startup flags for automation, headless mode, and debugging.

--crosh-command

What does --crosh-command do?

Custom crosh command.

Usage

CLILaunch Chrome with --crosh-command using CLI

chrome --crosh-command

PuppeteerLaunch Chrome with --crosh-command using Puppeteer

const browser = await puppeteer.launch({
  args: ['--crosh-command']
});

PlaywrightLaunch Chrome with --crosh-command using Playwright

const browser = await chromium.launch({
  args: ['--crosh-command']
});

SeleniumLaunch Chrome with --crosh-command using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--crosh-command')

driver = webdriver.Chrome(options=options)

Build Conditions

ANDROIDCHROMEOS