Chrome Flags Reference

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

--dmg-device

What does --dmg-device do?

When switches::kProcessType is switches::kRelauncherProcess, if this switch is also present, the relauncher process will unmount and eject a mounted disk image and move its disk image file to the trash. The argument's value must be a BSD device name of the form "diskN" or "diskNsM".

Usage

CLILaunch Chrome with --dmg-device using CLI

chrome --dmg-device

PuppeteerLaunch Chrome with --dmg-device using Puppeteer

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

PlaywrightLaunch Chrome with --dmg-device using Playwright

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

SeleniumLaunch Chrome with --dmg-device using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--dmg-device')

driver = webdriver.Chrome(options=options)

Build Conditions

ANDROID!(CHROMEOS)MAC