Chrome Flags Reference

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

--host-version-code

What does --host-version-code do?

No description available for this flag.

Usage

CLILaunch Chrome with --host-version-code using CLI

chrome --host-version-code

PuppeteerLaunch Chrome with --host-version-code using Puppeteer

const browser = await puppeteer.launch({
  args: ['--host-version-code']
});

PlaywrightLaunch Chrome with --host-version-code using Playwright

const browser = await chromium.launch({
  args: ['--host-version-code']
});

SeleniumLaunch Chrome with --host-version-code using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--host-version-code')

driver = webdriver.Chrome(options=options)

Build Conditions

ANDROID