Chrome Flags Reference

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

--repair-all-valid-extensions

What does --repair-all-valid-extensions do?

Indicates that all corrupted extensions should be repaired if they are are enabled by policy. This is mainly used after a user data downgrade.

Usage

CLILaunch Chrome with --repair-all-valid-extensions using CLI

chrome --repair-all-valid-extensions

PuppeteerLaunch Chrome with --repair-all-valid-extensions using Puppeteer

const browser = await puppeteer.launch({
  args: ['--repair-all-valid-extensions']
});

PlaywrightLaunch Chrome with --repair-all-valid-extensions using Playwright

const browser = await chromium.launch({
  args: ['--repair-all-valid-extensions']
});

SeleniumLaunch Chrome with --repair-all-valid-extensions using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--repair-all-valid-extensions')

driver = webdriver.Chrome(options=options)