Chrome Flags Reference

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

--allow-command-line-plugins

What does --allow-command-line-plugins do?

Allows plugins to be loaded in the command line for testing.

Usage

CLILaunch Chrome with --allow-command-line-plugins using CLI

chrome --allow-command-line-plugins

PuppeteerLaunch Chrome with --allow-command-line-plugins using Puppeteer

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

PlaywrightLaunch Chrome with --allow-command-line-plugins using Playwright

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

SeleniumLaunch Chrome with --allow-command-line-plugins using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--allow-command-line-plugins')

driver = webdriver.Chrome(options=options)